org.apache.bcel.classfile
public final class LineNumberTable extends Attribute
See Also: Code LineNumber
| Constructor Summary | |
|---|---|
| LineNumberTable(LineNumberTable c) | |
| LineNumberTable(int name_index, int length, LineNumber[] line_number_table, ConstantPool constant_pool) | |
| Method Summary | |
|---|---|
| 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(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) |
| String | toString() |
Parameters: v Visitor object
Returns: deep copy of this attribute
Parameters: file Output file stream
Throws: IOException
Returns: Array of (pc offset, line number) pairs.
Parameters: pos byte code offset
Returns: corresponding line in source code
Parameters: line_number_table the line number entries for this table
Returns: String representation.