| java.lang.Object javassist.bytecode.AttributeInfo javassist.bytecode.LineNumberAttribute
LineNumberAttribute | public class LineNumberAttribute extends AttributeInfo (Code) | | LineNumberTable_attribute .
|
Inner Class :public static class Pc | |
Field Summary | |
final public static String | tag The name of this attribute "LineNumberTable" . |
Method Summary | |
public AttributeInfo | copy(ConstPool newCp, Map classnames) Makes a copy. | public int | lineNumber(int i) Returns line_number_table[i].line_number . | void | shiftPc(int where, int gapLength, boolean exclusive) Adjusts start_pc if bytecode is inserted in a method body. | public int | startPc(int i) Returns line_number_table[i].start_pc . | public int | tableLength() Returns line_number_table_length . | public int | toLineNumber(int pc) Returns the line number corresponding to the specified bytecode. | public Pc | toNearPc(int 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.
Parameters: line - the line number. | public int | toStartPc(int line) Returns the index into the code array at which the code for
the specified line begins.
Parameters: line - the line number. |
tag | final public static String tag(Code) | | The name of this attribute "LineNumberTable" .
|
copy | public AttributeInfo copy(ConstPool newCp, Map classnames)(Code) | | Makes a copy.
Parameters: newCp - the constant pool table used by the new copy. Parameters: classnames - should be null. |
lineNumber | public int lineNumber(int i)(Code) | | Returns line_number_table[i].line_number .
This represents the corresponding line number in the original
source file.
Parameters: i - the i-th entry. |
shiftPc | void shiftPc(int where, int gapLength, boolean exclusive)(Code) | | Adjusts start_pc if bytecode is inserted in a method body.
|
startPc | public int startPc(int i)(Code) | | Returns line_number_table[i].start_pc .
This represents the index into the code array at which the code
for a new line in the original source file begins.
Parameters: i - the i-th entry. |
tableLength | public int tableLength()(Code) | | Returns line_number_table_length .
This represents the number of entries in the table.
|
toLineNumber | public int toLineNumber(int pc)(Code) | | Returns the line number corresponding to the specified bytecode.
Parameters: pc - the index into the code array. |
toNearPc | public Pc toNearPc(int line)(Code) | | Returns the index into the code array at which the code for
the specified line (or the nearest line after the specified one)
begins.
Parameters: line - the line number. a pair of the index and the line number of thebytecode at that index. |
toStartPc | public int toStartPc(int line)(Code) | | Returns the index into the code array at which the code for
the specified line begins.
Parameters: line - the line number. -1 if the specified line is not found. |
|
|