|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectharpoon.IR.RawClass.Attribute
harpoon.IR.RawClass.AttributeLineNumberTable
public class AttributeLineNumberTable
The LineNumberTable attribute is an optional
variable-length attribute in the attributes table of a
Code attribute. It may be used by debuggers to
determine which part of the Java Virtual Machine code
array corresponds to a given line number in the original Java source
file. If LineNumberTable attributes are present in the
attributes table of a given Code attribute,
then they may appear in any order. Furthermore, multiple
LineNumberTable attributes may together represent a
given line of a Java source file; that is,
LineNumberTable attributes need not be one-to-one with
source lines.
AttributeCode,
Attribute| Field Summary | |
|---|---|
static String |
ATTRIBUTE_NAME
The string naming this Attribute type. |
LineNumberTable[] |
line_number_table
Each entry in the line_number_table array indicates
that the line number in the original Java source file changes at
a given point in the code array. |
| Fields inherited from class harpoon.IR.RawClass.Attribute |
|---|
attribute_name_index, parent |
| Constructor Summary | |
|---|---|
AttributeLineNumberTable(ClassFile parent,
int attribute_name_index,
LineNumberTable[] line_number_table)
Constructor. |
|
| Method Summary | |
|---|---|
long |
attribute_length()
The value of the attribute_length item indicates
the length of the attribute, excluding the initial six bytes. |
int |
line_number_table_length()
|
void |
print(PrintWriter pw,
int indent)
Pretty-print this attribute. |
void |
write(ClassDataOutputStream out)
Write to bytecode stream. |
| Methods inherited from class harpoon.IR.RawClass.Attribute |
|---|
attribute_name_index, attribute_name, read, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ATTRIBUTE_NAME
Attribute type.
public LineNumberTable[] line_number_table
line_number_table array indicates
that the line number in the original Java source file changes at
a given point in the code array.
| Constructor Detail |
|---|
public AttributeLineNumberTable(ClassFile parent,
int attribute_name_index,
LineNumberTable[] line_number_table)
| Method Detail |
|---|
public long attribute_length()
Attributeattribute_length item indicates
the length of the attribute, excluding the initial six bytes.
attribute_length in class Attributepublic int line_number_table_length()
public void write(ClassDataOutputStream out)
throws IOException
write in class AttributeIOException
public void print(PrintWriter pw,
int indent)
print in class Attributeindent - the indentation level to use.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||