harpoon.IR.RawClass
Class LineNumberTable

java.lang.Object
  extended by harpoon.IR.RawClass.LineNumberTable

public class LineNumberTable
extends Object

Each object indicates that the line number in the original Java source file changes at a given point in the code array.

Version:
$Id: LineNumberTable.java,v 1.2 2002/02/25 21:05:27 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
"The Java Virtual Machine Specification, section 4.7.6", AttributeLineNumberTable

Field Summary
 int line_number
          The value of the line_number item must give the corresponding line number in the original Java source file.
 int start_pc
          The value of the start_pc item must indicate the index into the code array at which the code for a new line in the original Java source file begins.
 
Constructor Summary
LineNumberTable(int start_pc, int line_number)
          Constructor.
 
Method Summary
 String toString()
          Human-readable string:
 void write(ClassDataOutputStream out)
          Writes to bytecode stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

start_pc

public int start_pc
The value of the start_pc item must indicate the index into the code array at which the code for a new line in the original Java source file begins. The value of start_pc must be less than the value of the code_length item of the Code attribute of which this LineNumberTable is an attribute.


line_number

public int line_number
The value of the line_number item must give the corresponding line number in the original Java source file.

Constructor Detail

LineNumberTable

public LineNumberTable(int start_pc,
                       int line_number)
Constructor.

Method Detail

write

public void write(ClassDataOutputStream out)
           throws IOException
Writes to bytecode stream.

Throws:
IOException

toString

public String toString()
Human-readable string:

Overrides:
toString in class Object