mjc

org.multijava.util.classfile
Class LineNumberTable

java.lang.Object
  extended byorg.multijava.util.classfile.Attribute
      extended byorg.multijava.util.classfile.LineNumberTable

public class LineNumberTable
extends Attribute

VMS 4.7.6: Line Number Table Attribute This attribute represents a mapping between he Java Virtual Machine code array and the line number in the original Java source file


Field Summary
private static AsciiConstant attr
           
private  LineNumberInfo[] entries
           
 
Constructor Summary
LineNumberTable(DataInput in, ConstantPool cp, Instruction[] insns)
          Constructs a line number table attribute from a class file stream.
LineNumberTable(LineNumberInfo[] entries)
          Create a line number table attribute.
 
Method Summary
(package private)  LineNumberInfo[] getLineNumbers()
          Returns line number information
protected  int getSize()
          Returns the space in bytes used by this attribute in the classfile
protected  int getTag()
          Returns the attribute's tag
protected  void resolveConstants(ConstantPool cp)
          Insert or check location of constant value on constant pool
protected  void write(ConstantPool cp, DataOutput out)
          Write this class into the the file (out) getting data position from the constant pool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attr

private static AsciiConstant attr

entries

private LineNumberInfo[] entries
Constructor Detail

LineNumberTable

public LineNumberTable(LineNumberInfo[] entries)
Create a line number table attribute.


LineNumberTable

public LineNumberTable(DataInput in,
                       ConstantPool cp,
                       Instruction[] insns)
                throws IOException
Constructs a line number table attribute from a class file stream.

Parameters:
in - the stream to read from
cp - the constant pool
insns - (sparse) array of instructions
Throws:
IOException - an io problem has occured
Method Detail

getTag

protected int getTag()
Returns the attribute's tag


getSize

protected int getSize()
Returns the space in bytes used by this attribute in the classfile


getLineNumbers

LineNumberInfo[] getLineNumbers()
Returns line number information


resolveConstants

protected void resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool

Parameters:
cp - the constant pool for this class

write

protected void write(ConstantPool cp,
                     DataOutput out)
              throws IOException
Write this class into the the file (out) getting data position from the constant pool

Parameters:
cp - the constant pool that contain all data
out - the file where to write this object info
Throws:
IOException - an io problem has occured

mjc

mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.