Class LineNumber
java.lang.Object
org.apache.bcel.classfile.LineNumber
This class represents a (PC offset, line number) pair, that is, a line number in the source that corresponds to a
relative address in the byte code. This is used for debugging purposes.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.copy()voiddump(DataOutputStream file) Dumps line number/pc pair to file stream in binary format.intintvoidsetLineNumber(int lineNumber) voidsetStartPC(int startPc) toString()
-
Constructor Details
-
LineNumber
- Parameters:
startPc- Program Counter (PC) corresponds to.lineNumber- line number in source file.
-
LineNumber
-
-
Method Details
-
accept
-
copy
- Returns:
- deep copy of this object.
-
dump
Dumps line number/pc pair to file stream in binary format.- Parameters:
file- Output file stream.- Throws:
IOException- if an I/O Exception occurs in writeShort.
-
getLineNumber
- Returns:
- Corresponding source line.
-
getStartPC
- Returns:
- PC in code.
-
setLineNumber
- Parameters:
lineNumber- the source line number.
-
setStartPC
- Parameters:
startPc- the pc for this line number.
-
toString
-