Klasse ConstantPool
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.ConstantPool
- Alle implementierten Schnittstellen:
IConstantPool
Default implementation of IConstantPool.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdecodeEntry(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.
-
Methodendetails
-
decodeEntry
Beschreibung aus Schnittstelle kopiert: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.- Angegeben von:
decodeEntryin SchnittstelleIConstantPool- Parameter:
index- the index of the entry in the constant pool- Gibt zurück:
- the entry at the given index in the constant pool
- Siehe auch:
-
getConstantPoolCount
public int getConstantPoolCount()Beschreibung aus Schnittstelle kopiert:IConstantPoolAnswer back the number of entries in the constant pool.- Angegeben von:
getConstantPoolCountin SchnittstelleIConstantPool- Gibt zurück:
- the number of entries in the constant pool
- Siehe auch:
-
getEntryKind
public int getEntryKind(int index) Beschreibung aus Schnittstelle kopiert:IConstantPoolAnswer back the type of the entry at the given index in the constant pool.- Angegeben von:
getEntryKindin SchnittstelleIConstantPool- Parameter:
index- the index of the entry in the constant pool- Gibt zurück:
- the type of the entry at the index @index in the constant pool
- Siehe auch:
-