public final class LineNumber extends Object implements Cloneable, Node, Serializable
LineNumberTable
,
Serialized FormConstructor and Description |
---|
LineNumber(int start_pc,
int line_number) |
LineNumber(LineNumber c)
Initialize from another object.
|
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.
|
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() |
public LineNumber(LineNumber c)
c
- the object to copypublic LineNumber(int start_pc, int line_number)
start_pc
- Program Counter (PC) corresponds toline_number
- line number in source filepublic void accept(Visitor v)
public final void dump(DataOutputStream file) throws IOException
file
- Output file streamIOException
public final int getLineNumber()
public final int getStartPC()
public final void setLineNumber(int line_number)
line_number
- the source line numberpublic final void setStartPC(int start_pc)
start_pc
- the pc for this line numberpublic final String toString()
public LineNumber copy()