| java.lang.Object gnu.bytecode.ConstantPool
ConstantPool | public class ConstantPool (Code) | | Manages a pool of constants, as used in .class files and Java interpreters.
author: Per Bothner |
CLASS | final public static byte CLASS(Code) | | |
DOUBLE | final public static byte DOUBLE(Code) | | |
FIELDREF | final public static byte FIELDREF(Code) | | |
FLOAT | final public static byte FLOAT(Code) | | |
INTEGER | final public static byte INTEGER(Code) | | |
INTERFACE_METHODREF | final public static byte INTERFACE_METHODREF(Code) | | |
LONG | final public static byte LONG(Code) | | |
METHODREF | final public static byte METHODREF(Code) | | |
NAME_AND_TYPE | final public static byte NAME_AND_TYPE(Code) | | |
STRING | final public static byte STRING(Code) | | |
UTF8 | final public static byte UTF8(Code) | | |
count | int count(Code) | | Number of elements in the constant pool, not counting
the initial dummy element (with index 0).
|
pool | CpoolEntry[] pool(Code) | | The entries in the constant pool.
The first element (constant_pool[0]) is an unused dummy.
|
ConstantPool | public ConstantPool()(Code) | | |
getCount | final public int getCount()(Code) | | |
getForced | CpoolEntry getForced(int index, int tag)(Code) | | Get or create a CpoolEntry at a given index.
If there is an existing entry, it must match the tag.
If not, a new one is create of the class appropriate for the tag.
|
getPoolEntry | final public CpoolEntry getPoolEntry(int index)(Code) | | Get the index'th entry in pool.
Will throw ArrayIndexOutOfBoundsException on an invalid index
|
|
|