byucc.jhdl.synth.classparse
Class AttributeLocalVariableTable
java.lang.Object
byucc.jhdl.synth.classparse.ClassFileParser
byucc.jhdl.synth.classparse.AttributeInfo
byucc.jhdl.synth.classparse.AttributeLocalVariableTable
- public class AttributeLocalVariableTable
- extends AttributeInfo
Fields inherited from class byucc.jhdl.synth.classparse.ClassFileParser |
CONSTANT_Class, CONSTANT_Double, CONSTANT_Fieldref, CONSTANT_Float, CONSTANT_Integer, CONSTANT_InterfaceMethodref, CONSTANT_Long, CONSTANT_Methodref, CONSTANT_NameAndType, CONSTANT_String, CONSTANT_Utf8 |
Methods inherited from class byucc.jhdl.synth.classparse.ClassFileParser |
getClassFile, getConstantPool, parseAttributeInfo, parseAttributes, parseConstantPool, parseCPInfo, parseDouble, parseFieldInfo, parseFields, parseFloat, parseLong, parseMethodInfo, parseMethods, parseOpCode, parseSuccess, parseUTF, s2, toJasmin, u1, u2, u4 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AttributeLocalVariableTable
public AttributeLocalVariableTable(AttributeCode parent,
int name_index)
toClass
public void toClass(ClassFileWriter output)
- Spit out the contents of this AttributeLocalVariableTable to the given ClassFileWriter.
This method is basically the opposite of the constructor. The constructor
reads in a AttributeLocalVariableTable from a DataInputStream and this method spits the
AttributeLocalVariableTable out to a DataOutputStream, (which is in the ClassFileWriter).
- Overrides:
toClass
in class AttributeInfo
- Parameters:
output
- a ClassFileWriter constructed with a DataOutputStram to
contain the output class file.
length
public int length()
- Overrides:
length
in class ClassFileParser
toString
public java.lang.String toString()
toJasmin
public java.lang.StringBuffer toJasmin(java.lang.StringBuffer result)
- Overrides:
toJasmin
in class AttributeInfo
getLocalVariableType
public java.lang.String getLocalVariableType(int index)
getLocalVariableName_unsafe
public java.lang.String getLocalVariableName_unsafe(int index)
- This will get the index but not check the PC. This could access
a local name that is out of scope.
getLocalVariableName
public java.lang.String getLocalVariableName(int pc,
int index)
Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.