Class ConstantPool
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.ConstantPool
-
Method Summary
Modifier and TypeMethodDescriptiondecodeEntry(int index) Answer back the entry at the given index in the constant pool.intAnswer back the number of entries in the constant pool.intgetEntryKind(int index) Answer back the type of the entry at the given index in the constant pool.
-
Method Details
-
decodeEntry
Description copied from interface:IConstantPoolAnswer back the entry at the given index in the constant pool.The return value can be an instance of
IConstantPoolEntry2if the value returned byIConstantPool.getEntryKind(int)is eitherIConstantPoolConstant.CONSTANT_MethodHandle,IConstantPoolConstant.CONSTANT_MethodType,IConstantPoolConstant.CONSTANT_InvokeDynamic,IConstantPoolConstant.CONSTANT_Dynamic.The return value can be an instance of
IConstantPoolEntry3if the value returned byIConstantPool.getEntryKind(int)is eitherIConstantPoolConstant.CONSTANT_ModuleorIConstantPoolConstant.CONSTANT_Package.- Specified by:
decodeEntryin interfaceIConstantPool- Parameters:
index- the index of the entry in the constant pool- Returns:
- the entry at the given index in the constant pool
- See Also:
-
getConstantPoolCount
public int getConstantPoolCount()Description copied from interface:IConstantPoolAnswer back the number of entries in the constant pool.- Specified by:
getConstantPoolCountin interfaceIConstantPool- Returns:
- the number of entries in the constant pool
- See Also:
-
getEntryKind
public int getEntryKind(int index) Description copied from interface:IConstantPoolAnswer back the type of the entry at the given index in the constant pool.- Specified by:
getEntryKindin interfaceIConstantPool- Parameters:
index- the index of the entry in the constant pool- Returns:
- the type of the entry at the index @index in the constant pool
- See Also:
-