org.apache.bcel.classfile
public final class LineNumberTable extends Attribute
Version: $Id: LineNumberTable.java 386056 2006-03-15 11:31:56Z tcurdt $
See Also: Code LineNumber
Field Summary | |
---|---|
LineNumber[] | line_number_table |
int | line_number_table_length |
Constructor Summary | |
---|---|
LineNumberTable(LineNumberTable c) | |
LineNumberTable(int name_index, int length, LineNumber[] line_number_table, ConstantPool constant_pool) | |
LineNumberTable(int name_index, int length, DataInputStream file, ConstantPool constant_pool)
Construct object from file stream. |
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: name_index Index of name length Content length in bytes file Input stream constant_pool Array of constants
Throws: IOException
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.