public class ConstantPool extends ClassFileStruct implements IConstantPool
| Modifier and Type | Method and Description |
|---|---|
IConstantPoolEntry |
decodeEntry(int index)
Answer back the entry at the given index in the constant pool.
|
int |
getConstantPoolCount()
Answer back the number of entries in the constant pool.
|
int |
getEntryKind(int index)
Answer back the type of the entry at the given index in the constant pool.
|
public IConstantPoolEntry decodeEntry(int index)
IConstantPoolThe return value can be an instance of IConstantPoolEntry2 if the value returned
by IConstantPool.getEntryKind(int) is either IConstantPoolConstant.CONSTANT_MethodHandle,
IConstantPoolConstant.CONSTANT_MethodType,
IConstantPoolConstant.CONSTANT_InvokeDynamic,
IConstantPoolConstant.CONSTANT_Dynamic.
The return value can be an instance of IConstantPoolEntry3 if the value returned
by IConstantPool.getEntryKind(int) is either IConstantPoolConstant.CONSTANT_Module
or IConstantPoolConstant.CONSTANT_Package.
decodeEntry in interface IConstantPoolindex - the index of the entry in the constant poolIConstantPool.decodeEntry(int)public int getConstantPoolCount()
IConstantPoolgetConstantPoolCount in interface IConstantPoolIConstantPool.getConstantPoolCount()public int getEntryKind(int index)
IConstantPoolgetEntryKind in interface IConstantPoolindex - the index of the entry in the constant poolIConstantPool.getEntryKind(int)