All Packages Class Hierarchy This Package Previous Next Index
Class DE.fub.inf.JVM.JavaClass.LineNumber
java.lang.Object
|
+----DE.fub.inf.JVM.JavaClass.LineNumber
- public final class LineNumber
- extends Object
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.
- Version:
- 970922
- Author:
- M. Dahm
- See Also:
- LineNumberTable
-
LineNumber()
- Empty constructor, all attributes have to be defined via `setXXX'
methods.
-
LineNumber(LineNumber)
- Initialize from another object.
-
LineNumber(short, short)
-
-
accept(Visitor)
- Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
-
dump(DataOutputStream)
- Dump line number/pc pair to file stream in binary format.
-
getLineNumber()
-
-
getStartPC()
-
-
setLineNumber(short)
-
-
setStartPC(short)
-
-
toString()
-
LineNumber
public LineNumber()
- Empty constructor, all attributes have to be defined via `setXXX'
methods. Use at your own risk.
LineNumber
public LineNumber(LineNumber c)
- Initialize from another object.
LineNumber
public LineNumber(short start_pc,
short line_number)
- Parameters:
- start_pc - Program Counter (PC) corresponds to
- line_number - line number in source file
accept
public void accept(Visitor v)
- Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class. I.e., the hierarchy of methods,
fields, attributes, etc. spawns a tree of objects.
- Parameters:
- v - Visitor object
dump
public final void dump(DataOutputStream file) throws IOException
- Dump line number/pc pair to file stream in binary format.
- Parameters:
- file - Output file stream
getLineNumber
public final short getLineNumber()
- Returns:
- Corresponding source line
getStartPC
public final short getStartPC()
- Returns:
- PC in code
setLineNumber
public final void setLineNumber(short line_number)
setStartPC
public final void setStartPC(short start_pc)
toString
public final String toString()
- Returns:
- String representation
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index