Interface LoadableConstantEntry

All Superinterfaces:
ClassFileElement, PoolEntry, WritableElement<PoolEntry>
All Known Subinterfaces:
ClassEntry, ConstantDynamicEntry, ConstantValueEntry, DoubleEntry, FloatEntry, IntegerEntry, LongEntry, MethodHandleEntry, MethodTypeEntry, StringEntry
All Known Implementing Classes:
AbstractPoolEntry.ClassEntryImpl, AbstractPoolEntry.ConstantDynamicEntryImpl, AbstractPoolEntry.DoubleEntryImpl, AbstractPoolEntry.FloatEntryImpl, AbstractPoolEntry.IntegerEntryImpl, AbstractPoolEntry.LongEntryImpl, AbstractPoolEntry.MethodHandleEntryImpl, AbstractPoolEntry.MethodTypeEntryImpl, AbstractPoolEntry.StringEntryImpl

public sealed interface LoadableConstantEntry extends PoolEntry permits ClassEntry, ConstantDynamicEntry, ConstantValueEntry, MethodHandleEntry, MethodTypeEntry
Marker interface for constant pool entries suitable for loading via the LDC instructions.
Since:
22
  • Method Details

    • constantValue

      ConstantDesc constantValue()
      Returns the constant described by this entry.
      Returns:
      the constant described by this entry
    • typeKind

      default TypeKind typeKind()
      Returns the type of the constant.
      Returns:
      the type of the constant