All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class de.fub.bytecode.generic.LineNumberGen

java.lang.Object
   |
   +----de.fub.bytecode.generic.LineNumberGen

public class LineNumberGen
extends 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.4 1999/08/13 08:18:33 dahm Exp $
Author:
M. Dahm
See Also:
LineNumber, MethodGen

Constructor Index

 o LineNumberGen(InstructionHandle, int)
Create a line number.

Method Index

 o getInstruction()
 o getLineNumber(ConstantPoolGen)
Get LineNumber object.
 o getSourceLine()
 o setInstruction(InstructionHandle)
 o setSourceLine(int)

Constructors

 o LineNumberGen
 public LineNumberGen(InstructionHandle ih,
                      int src_line)
Create a line number.

Parameters:
ih - instruction to tag
Returns:
new line number object

Methods

 o 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
 o setInstruction
 public void setInstruction(InstructionHandle ih)
 o getInstruction
 public InstructionHandle getInstruction()
 o setSourceLine
 public void setSourceLine(int src_line)
 o getSourceLine
 public int getSourceLine()

All Packages  Class Hierarchy  This Package  Previous  Next  Index