Interface DynamicConstantPoolEntry

All Superinterfaces:
ClassFileElement, PoolEntry, WritableElement<PoolEntry>
All Known Subinterfaces:
ConstantDynamicEntry, InvokeDynamicEntry
All Known Implementing Classes:
AbstractPoolEntry.ConstantDynamicEntryImpl, AbstractPoolEntry.InvokeDynamicEntryImpl

public sealed interface DynamicConstantPoolEntry extends PoolEntry permits ConstantDynamicEntry, InvokeDynamicEntry
Models a dynamic constant pool entry, which is either ConstantDynamicEntry or InvokeDynamicEntry.
Since:
22
Jvms:
4.4.10 The CONSTANT_Dynamic_info and CONSTANT_InvokeDynamic_info Structures
  • 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