de.fub.bytecode.generic
Class LineNumberGen
java.lang.Object
|
+--de.fub.bytecode.generic.LineNumberGen
- public 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.5 2000/08/10 08:36:22 dahm Exp $
- Author:
- M. Dahm
- See Also:
LineNumber
,
MethodGen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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()