gnu.bytecode
Class ConstantPool
java.lang.Object
gnu.bytecode.ConstantPool
public class ConstantPool
extends java.lang.Object
Manages a pool of constants, as used in .class files and Java interpreters.
CLASS
public static final byte CLASS
DOUBLE
public static final byte DOUBLE
FIELDREF
public static final byte FIELDREF
FLOAT
public static final byte FLOAT
INTEGER
public static final byte INTEGER
INTERFACE_METHODREF
public static final byte INTERFACE_METHODREF
LONG
public static final byte LONG
METHODREF
public static final byte METHODREF
NAME_AND_TYPE
public static final byte NAME_AND_TYPE
STRING
public static final byte STRING
UTF8
public static final byte UTF8
ConstantPool
public ConstantPool()
ConstantPool
public ConstantPool(java.io.DataInputStream dstr)
throws java.io.IOException
addString
public final CpoolString addString(String string)
getCount
public final int getCount()
getPoolEntry
public final CpoolEntry getPoolEntry(int index)
Get the index'th entry in pool.
Will throw ArrayIndexOutOfBoundsException on an invalid index