Interface DynamicConstantPoolEntry
- All Known Subinterfaces:
ConstantDynamicEntryPREVIEW
,InvokeDynamicEntryPREVIEW
public sealed interface DynamicConstantPoolEntry
extends PoolEntryPREVIEW
permits ConstantDynamicEntryPREVIEW, InvokeDynamicEntryPREVIEW
DynamicConstantPoolEntry
is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models a dynamic constant pool entry, which is either
ConstantDynamicEntry
PREVIEW
or InvokeDynamicEntry
PREVIEW.- See Java Virtual Machine Specification:
-
4.4.10 The CONSTANT_Dynamic_info and CONSTANT_InvokeDynamic_info Structures
- Since:
- 22
-
Field Summary
Fields declared in interface java.lang.classfile.constantpool.PoolEntryPREVIEW
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
-
Method Details
-
bootstrap
BootstrapMethodEntryPREVIEW 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
NameAndTypeEntryPREVIEW nameAndType()Returns the invocation name and type.- Returns:
- the invocation name and type
-
name
-
type
-
DynamicConstantPoolEntry
when preview features are enabled.