org.apache.bcel.classfile
public final class LineNumber extends Object implements Cloneable, Node, Serializable
Version: $Id: LineNumber.java 386056 2006-03-15 11:31:56Z tcurdt $
See Also: LineNumberTable
| Field Summary | |
|---|---|
| int | line_number |
| int | start_pc |
| Constructor Summary | |
|---|---|
| LineNumber(LineNumber c)
Initialize from another object. | |
| LineNumber(DataInputStream file)
Construct object from file stream. | |
| LineNumber(int start_pc, int line_number) | |
| 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. |
| LineNumber | copy() |
| void | dump(DataOutputStream file)
Dump line number/pc pair to file stream in binary format.
|
| int | getLineNumber() |
| int | getStartPC() |
| void | setLineNumber(int line_number) |
| void | setStartPC(int start_pc) |
| String | toString() |
Parameters: file Input stream
Throws: IOException
Parameters: start_pc Program Counter (PC) corresponds to line_number line number in source file
Parameters: v Visitor object
Returns: deep copy of this object
Parameters: file Output file stream
Throws: IOException
Returns: Corresponding source line
Returns: PC in code
Parameters: line_number the source line number
Parameters: start_pc the pc for this line number
Returns: String representation