Interface DynamicConstantPoolEntry

All Superinterfaces:
ClassFileElementPREVIEW, PoolEntryPREVIEW, WritableElementPREVIEW<PoolEntryPREVIEW>
All Known Subinterfaces:
ConstantDynamicEntryPREVIEW, InvokeDynamicEntryPREVIEW

public sealed interface DynamicConstantPoolEntry extends PoolEntryPREVIEW permits ConstantDynamicEntryPREVIEW, InvokeDynamicEntryPREVIEW
DynamicConstantPoolEntry is a preview API of the Java platform.
Programs can only use DynamicConstantPoolEntry when preview features are enabled.
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 ConstantDynamicEntryPREVIEW or InvokeDynamicEntryPREVIEW.
See Java Virtual Machine Specification:
4.4.10 The CONSTANT_Dynamic_info and CONSTANT_InvokeDynamic_info Structures
Sealed Class Hierarchy Graph:
Sealed class hierarchy graph for DynamicConstantPoolEntrySealed class hierarchy graph for DynamicConstantPoolEntry
Since:
22
  • Method Details

    • 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

      Returns the invocation name and type.
      Returns:
      the invocation name and type
    • name

      default Utf8EntryPREVIEW name()
      Returns the invocation name.
      Returns:
      the invocation name
    • type

      default Utf8EntryPREVIEW type()
      Returns the invocation type.
      Returns:
      the invocation type