Schnittstelle IConstantPool
- Alle bekannten Implementierungsklassen:
ConstantPool
public interface IConstantPool
Description of a constant pool as described in the JVM specifications.
This interface may be implemented by clients.
- Seit:
- 2.0
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdecodeEntry
(int index) Answer back the entry at the given index in the constant pool.int
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.
-
Methodendetails
-
getConstantPoolCount
int getConstantPoolCount()Answer back the number of entries in the constant pool.- Gibt zurück:
- the number of entries in the constant pool
-
getEntryKind
int getEntryKind(int index) Answer back the type of the entry at the given index in the constant pool.- 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
-
decodeEntry
Answer back the entry at the given index in the constant pool.The return value can be an instance of
IConstantPoolEntry2
if the value returned bygetEntryKind(int)
is eitherIConstantPoolConstant.CONSTANT_MethodHandle
,IConstantPoolConstant.CONSTANT_MethodType
,IConstantPoolConstant.CONSTANT_InvokeDynamic
,IConstantPoolConstant.CONSTANT_Dynamic
.The return value can be an instance of
IConstantPoolEntry3
if the value returned bygetEntryKind(int)
is eitherIConstantPoolConstant.CONSTANT_Module
orIConstantPoolConstant.CONSTANT_Package
.- Parameter:
index
- the index of the entry in the constant pool- Gibt zurück:
- the entry at the given index in the constant pool
-