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

Quick Search    Search Deep

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

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

public class LocalVariableTableEntry
extends java.lang.Object
implements CodeCompatible

this class represents an antry in the localvariabletable attribute, described in §4.7.9 TBD: make an entry editable through methods


Field Summary
private  UTF8CPEntry descriptor
           
private  short index
           
private  short length
           
private  UTF8CPEntry name
           
private  com.chaoswg.xtc4y.classdesc.code.instructions.Instruction startInstr
           
private  short startPc
           
 
Constructor Summary
protected LocalVariableTableEntry(java.io.DataInputStream dis, ConstantPool cp)
          Creates a LocalVariableTableEntry and initializes it from a DataInputStream
 
Method Summary
 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 writeEntry(java.io.DataOutputStream dos, ConstantPool cp)
          Write the attribute information onto the DataOutputStream, using the constant pool to register variables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startPc

private short startPc

length

private short length

descriptor

private UTF8CPEntry descriptor

name

private UTF8CPEntry name

index

private short index

startInstr

private com.chaoswg.xtc4y.classdesc.code.instructions.Instruction startInstr
Constructor Detail

LocalVariableTableEntry

protected LocalVariableTableEntry(java.io.DataInputStream dis,
                                  ConstantPool cp)
                           throws java.io.IOException
Creates a LocalVariableTableEntry and initializes it from a DataInputStream

Method Detail

writeEntry

protected void writeEntry(java.io.DataOutputStream dos,
                          ConstantPool cp)
                   throws java.io.IOException
Write the attribute information onto the DataOutputStream, using the constant pool to register variables. .


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