|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.bcel.classfile.LineNumber
public final class 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 Form| Constructor 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(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()
|
| 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 file| Method Detail |
|---|
public void accept(Visitor v)
accept in interface Nodev - Visitor object
public final void dump(DataOutputStream file)
throws IOException
file - Output file stream
IOExceptionpublic 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()
toString in class Objectpublic LineNumber copy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||