Interface DynamicConstantPoolEntry
- All Superinterfaces:
PoolEntry
- All Known Subinterfaces:
ConstantDynamicEntry
,InvokeDynamicEntry
public sealed interface DynamicConstantPoolEntry
extends PoolEntry
permits ConstantDynamicEntry, InvokeDynamicEntry
Models a dynamic constant pool entry, which is either
ConstantDynamicEntry
or InvokeDynamicEntry
.- See Java Virtual Machine Specification:
-
4.4.10 The CONSTANT_Dynamic_info and CONSTANT_InvokeDynamic_info Structures
- Sealed Class Hierarchy Graph:
- Since:
- 24
-
Field Summary
Fields declared in interface java.lang.classfile.constantpool.PoolEntry
TAG_CLASS, TAG_DOUBLE, TAG_DYNAMIC, TAG_FIELDREF, TAG_FLOAT, TAG_INTEGER, TAG_INTERFACE_METHODREF, TAG_INVOKE_DYNAMIC, TAG_LONG, TAG_METHOD_HANDLE, TAG_METHOD_TYPE, TAG_METHODREF, TAG_MODULE, TAG_NAME_AND_TYPE, TAG_PACKAGE, TAG_STRING, TAG_UTF8
-
Method Summary
Modifier and TypeMethodDescriptionReturns the entry in the bootstrap method table for this constant.int
Returns index of the entry in the bootstrap method table for this constant.default Utf8Entry
name()
Returns the invocation name.Returns the invocation name and type.default Utf8Entry
type()
Returns the invocation type.Methods declared in interface java.lang.classfile.constantpool.PoolEntry
constantPool, index, tag, width
-
Method Details
-
bootstrap
BootstrapMethodEntry bootstrap()Returns the entry in the bootstrap method table for this constant.- Returns:
- the entry in the bootstrap method table for this constant
-
bootstrapMethodIndex
int bootstrapMethodIndex()Returns index of the entry in the bootstrap method table for this constant.- Returns:
- index of the entry in the bootstrap method table for this constant
-
nameAndType
NameAndTypeEntry nameAndType()Returns the invocation name and type.- Returns:
- the invocation name and type
-
name
-
type
-