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.
  • 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
    • 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