at.dms.classfile
Class LineNumberTable

java.lang.Object
  |
  +--at.dms.classfile.Attribute
        |
        +--at.dms.classfile.LineNumberTable

public class LineNumberTable
extends Attribute

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


Fields inherited from class at.dms.classfile.Attribute
EMPTY
 
Constructor Summary
LineNumberTable(java.io.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.
(package private)  int getSize()
          Returns the space in bytes used by this attribute in the classfile.
(package private)  int getTag()
          Returns the attribute's tag.
(package private)  void resolveConstants(ConstantPool cp)
          Insert or check location of constant value on constant pool.
(package private)  void write(ConstantPool cp, java.io.DataOutput out)
          Write this class into the the file (out) getting data position from the constant pool.
 
Methods inherited from class at.dms.classfile.Attribute
read, readCodeInfoAttribute, readInterfaceOnly
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineNumberTable

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

LineNumberTable

public LineNumberTable(java.io.DataInput in,
                       ConstantPool cp,
                       Instruction[] insns)
                throws java.io.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:
java.io.IOException - an io problem has occured.
Method Detail

getTag

int getTag()
Returns the attribute's tag.
Overrides:
getTag in class Attribute

getSize

int getSize()
Returns the space in bytes used by this attribute in the classfile.
Overrides:
getSize in class Attribute

getLineNumbers

LineNumberInfo[] getLineNumbers()
Returns line number information.

resolveConstants

void resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool.
Overrides:
resolveConstants in class Attribute
Parameters:
cp - the constant pool for this class.

write

void write(ConstantPool cp,
           java.io.DataOutput out)
     throws java.io.IOException
Write this class into the the file (out) getting data position from the constant pool.
Overrides:
write in class Attribute
Parameters:
cp - the constant pool that contain all data.
out - the file where to write this object info.
Throws:
java.io.IOException - an io problem has occured.