Interface IConstantPoolEntry2
- All Superinterfaces:
IConstantPoolEntry
- All Known Subinterfaces:
IConstantPoolEntry3
- All Known Implementing Classes:
ConstantPoolEntry2
Description of the new constant pool entry as described in the JVM specifications
added for Java 7 support.
Its contents is initialized according to its kind.
This interface may be implemented by clients.
- Since:
- 3.8
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the bootstrap method attribute index.intReturns the descriptor index.intReturns the reference index.intReturns the reference kind.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.
-
Method Details
-
getDescriptorIndex
int getDescriptorIndex()Returns the descriptor index. This value is set only when decoding a MethodType entry. The value is unspecified otherwise. The corresponding UTF8 value can be retrieved by usingIConstantPoolEntry.getMethodDescriptor().- Returns:
- the descriptor index. This value is set only when decoding a MethodType entry.
- See Also:
-
getReferenceKind
int getReferenceKind()Returns the reference kind. This value is set only when decoding a MethodHandle entry. The value is unspecified otherwise.- Returns:
- the reference kind. This value is set only when decoding a MethodHandle entry.
- See Also:
-
getReferenceIndex
int getReferenceIndex()Returns the reference index. This value is set only when decoding a MethodHandle entry. The value is unspecified otherwise.- Returns:
- the reference kind. This value is set only when decoding a MethodHandle entry.
- See Also:
-
getBootstrapMethodAttributeIndex
int getBootstrapMethodAttributeIndex()Returns the bootstrap method attribute index. This value is set only when decoding a InvokeDynamic entry. The value is unspecified otherwise.- Returns:
- the reference kind. This value is set only when decoding a MethodHandle entry.
- See Also:
-