Interface LoadableConstantEntry

All Superinterfaces:
PoolEntry
All Known Subinterfaces:
ClassEntry, ConstantDynamicEntry, ConstantValueEntry, DoubleEntry, FloatEntry, IntegerEntry, LongEntry, MethodHandleEntry, MethodTypeEntry, StringEntry

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.
Sealed Class Hierarchy Graph:
Sealed class hierarchy graph for LoadableConstantEntrySealed class hierarchy graph for LoadableConstantEntry
Since:
24
  • 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