Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.chaoswg.xtc4y.classdesc
Class LocalVariableTableAttribute  view LocalVariableTableAttribute download LocalVariableTableAttribute.java

java.lang.Object
  extended bycom.chaoswg.xtc4y.classdesc.Attribute
      extended bycom.chaoswg.xtc4y.classdesc.LocalVariableTableAttribute
All Implemented Interfaces:
CodeCompatible

public class LocalVariableTableAttribute
extends Attribute
implements CodeCompatible

This class describes the information for a localVariableTable attribute ($4.7.9) TBD: make editable


Field Summary
private  java.util.Vector entries
           
static java.lang.String NAME
           
 
Constructor Summary
  LocalVariableTableAttribute()
          construct a new deprecated attribute
protected LocalVariableTableAttribute(java.io.DataInputStream dis, ConstantPool cp, int length)
          Creates a LocalVariableTableAttribute and initializes it from a DataInputStream The attribute name and length of the attribute information was already read.
 
Method Summary
 java.lang.String getName()
           
 void readIndices(com.chaoswg.xtc4y.classdesc.code.Code code)
          Called to resolve indices on instructions from the code table
 void resolveIndices(com.chaoswg.xtc4y.classdesc.code.Code code)
          Called to resolve the temporary stored indices into the code table
protected  void writeAttribute(java.io.DataOutputStream dos, ConstantPool cp)
          Write the attribute information onto the DataOutputStream, using the constant pool to register variables.
 
Methods inherited from class com.chaoswg.xtc4y.classdesc.Attribute
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

entries

private java.util.Vector entries
Constructor Detail

LocalVariableTableAttribute

protected LocalVariableTableAttribute(java.io.DataInputStream dis,
                                      ConstantPool cp,
                                      int length)
                               throws java.io.IOException
Creates a LocalVariableTableAttribute and initializes it from a DataInputStream The attribute name and length of the attribute information was already read.


LocalVariableTableAttribute

public LocalVariableTableAttribute()
construct a new deprecated attribute

Method Detail

writeAttribute

protected void writeAttribute(java.io.DataOutputStream dos,
                              ConstantPool cp)
                       throws java.io.IOException
Write the attribute information onto the DataOutputStream, using the constant pool to register variables. The Attribute name and the length of the information will already be written. A specific attribute implementation should overwrite this method.

Specified by:
writeAttribute in class Attribute

getName

public java.lang.String getName()
Specified by:
getName in class Attribute

resolveIndices

public void resolveIndices(com.chaoswg.xtc4y.classdesc.code.Code code)
Called to resolve the temporary stored indices into the code table

Specified by:
resolveIndices in interface CodeCompatible

readIndices

public void readIndices(com.chaoswg.xtc4y.classdesc.code.Code code)
Called to resolve indices on instructions from the code table

Specified by:
readIndices in interface CodeCompatible