|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.bcel.classfile.LineNumber
This class represents a (PC offset, line number) pair, i.e., a line number in the source that corresponds to a relative address in the byte code. This is used for debugging purposes.
LineNumberTable
,
Serialized FormConstructor Summary | |
LineNumber(int start_pc,
int line_number)
|
|
LineNumber(LineNumber c)
Initialize from another object. |
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(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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LineNumber(LineNumber c)
public LineNumber(int start_pc, int line_number)
start_pc
- Program Counter (PC) corresponds toline_number
- line number in source fileMethod Detail |
public void accept(Visitor v)
accept
in interface Node
v
- Visitor objectpublic final void dump(java.io.DataOutputStream file) throws java.io.IOException
file
- Output file stream
java.io.IOException
public final int getLineNumber()
public final int getStartPC()
public final void setLineNumber(int line_number)
public final void setStartPC(int start_pc)
public final java.lang.String toString()
toString
in class java.lang.Object
public LineNumber copy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |