LineNumberTable_attribute.
| Modifier and Type | Class and Description |
|---|---|
| public static class | LineNumberAttribute.
Used as a return type of |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | tag
The name of this attribute |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public AttributeInfo | |
| public int | |
| pack-priv void | shiftPc(int where, int gapLength, boolean exclusive)
Adjusts start_pc if bytecode is inserted in a method body. |
| public int | |
| public int | |
| public int | toLineNumber(int
the index into the code array. pc)Returns the line number corresponding to the specified bytecode. |
| public LineNumberAttribute. | Returns: a pair of the index and the line number of the bytecode at that index.the line number. line)Returns the index into the code array at which the code for the specified line (or the nearest line after the specified one) begins. |
| public int | Returns: -1 if the specified line is not found.the line number. line)Returns the index into the code array at which the code for the specified line begins. |
| tag | back to summary |
|---|---|
| public static final String tag The name of this attribute | |
| LineNumberAttribute | back to summary |
|---|---|
| pack-priv LineNumberAttribute(ConstPool cp, int n, DataInputStream in) throws IOException | |
| LineNumberAttribute | back to summary |
|---|---|
| private LineNumberAttribute(ConstPool cp, byte[] i) | |
| copy | back to summary |
|---|---|
| public AttributeInfo copy(ConstPool newCp, Map<String, String> classnames) Overrides javassist. Makes a copy. | |
| lineNumber | back to summary |
|---|---|
| public int lineNumber(int i) Returns
| |
| shiftPc | back to summary |
|---|---|
| pack-priv void shiftPc(int where, int gapLength, boolean exclusive) Adjusts start_pc if bytecode is inserted in a method body. | |
| startPc | back to summary |
|---|---|
| public int startPc(int i) Returns
| |
| tableLength | back to summary |
|---|---|
| public int tableLength() Returns | |
| toLineNumber | back to summary |
|---|---|
| public int toLineNumber(int pc) Returns the line number corresponding to the specified bytecode.
| |
| toNearPc | back to summary |
|---|---|
| public LineNumberAttribute. Returns the index into the code array at which the code for the specified line (or the nearest line after the specified one) begins.
| |
| toStartPc | back to summary |
|---|---|
| public int toStartPc(int line) Returns the index into the code array at which the code for the specified line begins.
| |
toNearPc().
| Modifier and Type | Field and Description |
|---|---|
| public int | index
The index into the code array. |
| public int | line
The line number. |
| Access | Constructor and Description |
|---|---|
| public |
| index | back to summary |
|---|---|
| public int index The index into the code array. | |
| line | back to summary |
|---|---|
| public int line The line number. | |
| Pc | back to summary |
|---|---|
| public Pc() | |