Interface IConstantPoolEntry3
- All Superinterfaces:
IConstantPoolEntry, IConstantPoolEntry2
- All Known Implementing Classes:
ConstantPoolEntry2
Description of a constant pool entry as described in the JVM specifications.
Its contents is initialized according to its kind.
- Since:
- 3.14
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the index for a CONSTANT_Module type entry.char[]Returns the name of a CONSTANT_Module type entry.intReturns the index for a CONSTANT_Package type entry.char[]Returns the name of a CONSTANT_Package type entry.Methods inherited from interface IConstantPoolEntry
getClassIndex, getClassInfoName, getClassInfoNameIndex, getClassName, getDoubleValue, getFieldDescriptor, getFieldName, getFloatValue, getIntegerValue, getKind, getLongValue, getMethodDescriptor, getMethodName, getNameAndTypeIndex, getNameAndTypeInfoDescriptorIndex, getNameAndTypeInfoNameIndex, getStringIndex, getStringValue, getUtf8Length, getUtf8ValueModifier and TypeMethodDescriptionintReturns the class index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry.char[]Returns the class name for a CONSTANT_Class type entry.intReturns the name index for a CONSTANT_Class type entry.char[]Returns the class name for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref type entry.doubleReturns the double value for a CONSTANT_Double type entry.char[]Returns the field descriptor value for a CONSTANT_Fieldref type entry.char[]Returns the field name for a CONSTANT_Fieldref type entry.floatReturns the float value for a CONSTANT_Float type entry.intReturns the integer value for a CONSTANT_Integer type entry.intgetKind()Returns the type of this entry.longReturns the long value for a CONSTANT_Long type entry.char[]Returns the method descriptor value for a CONSTANT_Methodref or CONSTANT_InterfaceMethodref type entry.char[]Returns the method name for a CONSTANT_Methodref, CONSTANT_InterfaceMethodref or CONSTANT_InvokeDynamic type entry.intReturns the nameAndType index for a CONSTANT_Fieldref, CONSTANT_Methodref, CONSTANT_InterfaceMethodref, CONSTANT_InvokeDynamic type entry.intReturns the descriptor index for a CONSTANT_NameAndType type entry.intReturns the name index for a CONSTANT_NameAndType type entry.intReturns the string index for a CONSTANT_String type entry.Returns the string value for a CONSTANT_String type entry.intReturns the utf8 length for a CONSTANT_Utf8 type entry.char[]Returns the utf8 value for a CONSTANT_Utf8 type entry.Methods inherited from interface IConstantPoolEntry2
getBootstrapMethodAttributeIndex, getDescriptorIndex, getReferenceIndex, getReferenceKindModifier and TypeMethodDescriptionintReturns the bootstrap method attribute index.intReturns the descriptor index.intReturns the reference index.intReturns the reference kind.
-
Method Details
-
getModuleIndex
int getModuleIndex()Returns the index for a CONSTANT_Module type entry. The value is unspecified otherwise.- Returns:
- the index for a CONSTANT_Module type entry
- See Also:
-
getModuleName
char[] getModuleName()Returns the name of a CONSTANT_Module type entry. Returns null otherwise.- Returns:
- the name of a CONSTANT_Module type entry
- See Also:
-
getPackageIndex
int getPackageIndex()Returns the index for a CONSTANT_Package type entry. The value is unspecified otherwise.- Returns:
- the index for a CONSTANT_Package type entry
- See Also:
-
getPackageName
char[] getPackageName()Returns the name of a CONSTANT_Package type entry. Returns null otherwise.- Returns:
- the name of a CONSTANT_Package type entry
- See Also:
-