public final class LineNumber extends java.lang.Object implements java.lang.Cloneable, Node
LineNumberTable
Modifier and Type | Field and Description |
---|---|
private short |
line_number
number in source file
|
private short |
start_pc
Program Counter (PC) corresponds to line
|
Constructor and Description |
---|
LineNumber(java.io.DataInput file)
Construct object from file stream.
|
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(java.io.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) |
java.lang.String |
toString() |
private short start_pc
private short line_number
public LineNumber(LineNumber c)
c
- the object to copyLineNumber(java.io.DataInput file) throws java.io.IOException
file
- Input streamIOEXception
- if an I/O Exception occurs in readUnsignedShortjava.io.IOException
public 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(java.io.DataOutputStream file) throws java.io.IOException
file
- Output file streamIOEXception
- if an I/O Exception occurs in writeShortjava.io.IOException
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 java.lang.String toString()
toString
in class java.lang.Object
public LineNumber copy()