|
||||||||||
| 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| Field Summary | |
|---|---|
private int |
line_number
|
private int |
start_pc
|
| Constructor Summary | |
|---|---|
LineNumber(java.io.DataInputStream file)
Construct object from file stream. |
|
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 |
| Field Detail |
|---|
private int start_pc
private int line_number
| Constructor Detail |
|---|
public LineNumber(LineNumber c)
LineNumber(java.io.DataInputStream file)
throws java.io.IOException
file - Input stream
java.io.IOException
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(java.io.DataOutputStream file)
throws java.io.IOException
file - Output file stream
java.io.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 java.lang.String toString()
toString in class java.lang.Objectpublic LineNumber copy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||