Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

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

Constructor Summary
LineNumberGen(InstructionHandle ih, int src_line)
          Create a line number.
 
Method Summary
InstructionHandle getInstruction()
           
LineNumber getLineNumber(ConstantPoolGen cp)
          Get LineNumber object.
int getSourceLine()
           
void setInstruction(InstructionHandle ih)
           
void setSourceLine(int src_line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

LineNumberGen

public LineNumberGen(InstructionHandle ih,
                     int src_line)
Create a line number.
Parameters:
ih - instruction to tag
Method Detail

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()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD