public final class LineNumber extends Object implements Cloneable, Node
LineNumberTable| Constructor 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 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 line_number)
line_number - the source line numberpublic void setStartPC(int start_pc)
start_pc - the pc for this line numberpublic String toString()
public LineNumber copy()
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.