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:
Sealed class hierarchy graph for DynamicConstantPoolEntrySealed class hierarchy graph for DynamicConstantPoolEntry
Since:
24
  • 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

      NameAndTypeEntry nameAndType()
      Returns the invocation name and type.
      Returns:
      the invocation name and type
    • name

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

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