byucc.jhdl.synth.classparse
Class ConstantPool
java.lang.Object
byucc.jhdl.synth.classparse.ClassFileParser
byucc.jhdl.synth.classparse.ConstantPool
- public class ConstantPool
- extends ClassFileParser
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, length, parseAttributeInfo, parseAttributes, parseConstantPool, parseCPInfo, parseDouble, parseFieldInfo, parseFields, parseFloat, parseLong, parseMethodInfo, parseMethods, parseOpCode, parseSuccess, parseUTF, s2, toJasmin, toJasmin, u1, u2, u4 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConstantPool
public ConstantPool()
toClass
public void toClass(ClassFileWriter output)
- Spit out the contents of this ConstantPool to the given ClassFileWriter.
This method is basically the opposite of the constructor. The constructor
reads in a ConstantPool from a DataInputStream and this method spits the
ConstantPool out to a DataOutputStream, (which is in the ClassFileWriter).
- Parameters:
output
- a ClassFileWriter constructed with a DataOutputStram to
contain the output class file.
get
public CPInfo get(int index)
getString
public java.lang.String getString(int index)
getCPFieldref
public CPFieldref getCPFieldref(int index)
getCPMethodref
public CPMethodref getCPMethodref(int index)
getCPNameAndType
public CPNameAndType getCPNameAndType(int index)
getCPClass
public CPClass getCPClass(int index)
toString
public java.lang.String toString()
Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.