Class DE.fub.inf.JVM.ClassGen.LineNumberGen
java.lang.Object
|
+--DE.fub.inf.JVM.ClassGen.LineNumberGen
- public final class LineNumberGen
- extends java.lang.Object
This class represents a line number within a method, i.e. give an instruction
a line number corresponding to the source code line.
- Version:
- $Id: LineNumberGen.java,v 1.1 1998/08/26 09:06:30 dahm Exp $
- Author:
- M. Dahm
- See Also:
- LineNumber, MethodGen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
LineNumberGen
public LineNumberGen(InstructionHandle ih,
int src_line)
- Create a line number.
- Parameters:
ih
- instruction to tag
getLineNumber
public LineNumber getLineNumber(ConstantPoolGen cp)
- Get LineNumber object.
This relies on that the instruction list has already been dumped to byte code or
or that the `setPositions' methods has been called for the instruction list.
- Parameters:
cp
- constant pool
setInstruction
public void setInstruction(InstructionHandle ih)
getInstruction
public InstructionHandle getInstruction()
setSourceLine
public void setSourceLine(int src_line)
getSourceLine
public int getSourceLine()