public final class LineNumber extends Object implements Cloneable, Node
LineNumberTable| Constructor and Description |
|---|
LineNumber(int startPc,
int lineNumber) |
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 implicitly 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 lineNumber) |
void |
setStartPC(int startPc) |
String |
toString() |
public LineNumber(int startPc, int lineNumber)
startPc - Program Counter (PC) corresponds tolineNumber - line number in source filepublic LineNumber(LineNumber c)
c - the object to copypublic void accept(Visitor v)
public LineNumber copy()
public void dump(DataOutputStream file) throws IOException
file - Output file streamIOException - if an I/O Exception occurs in writeShortpublic int getLineNumber()
public int getStartPC()
public void setLineNumber(int lineNumber)
lineNumber - the source line numberpublic void setStartPC(int startPc)
startPc - the pc for this line numberCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.