public final class LineNumberTable extends Attribute
Code
,
LineNumber
,
Serialized Formconstant_pool, length, name_index, tag
Constructor and Description |
---|
LineNumberTable(int name_index,
int length,
LineNumber[] line_number_table,
ConstantPool constant_pool) |
LineNumberTable(LineNumberTable c) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
|
Attribute |
copy(ConstantPool _constant_pool) |
void |
dump(java.io.DataOutputStream file)
Dump line number table attribute to file stream in binary format.
|
LineNumber[] |
getLineNumberTable() |
int |
getSourceLine(int pos)
Map byte code positions to source code lines.
|
int |
getTableLength() |
void |
setLineNumberTable(LineNumber[] line_number_table) |
java.lang.String |
toString() |
addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndex
public LineNumberTable(LineNumberTable c)
public LineNumberTable(int name_index, int length, LineNumber[] line_number_table, ConstantPool constant_pool)
public void accept(Visitor v)
public final void dump(java.io.DataOutputStream file) throws java.io.IOException
public final LineNumber[] getLineNumberTable()
public final void setLineNumberTable(LineNumber[] line_number_table)
line_number_table
- the line number entries for this tablepublic final java.lang.String toString()
public int getSourceLine(int pos)
pos
- byte code offsetpublic Attribute copy(ConstantPool _constant_pool)
public final int getTableLength()