Interface LongEntry

All Superinterfaces:
AnnotationConstantValueEntry, ClassFileElement, ConstantValueEntry, LoadableConstantEntry, PoolEntry, WritableElement<PoolEntry>
All Known Implementing Classes:
AbstractPoolEntry.LongEntryImpl

public sealed interface LongEntry extends AnnotationConstantValueEntry, ConstantValueEntry permits AbstractPoolEntry.LongEntryImpl
Models a CONSTANT_Long_info constant in the constant pool of a classfile.
Since:
22
Jvms:
4.4.5 The CONSTANT_Long_info and CONSTANT_Double_info Structures
  • Method Details

    • longValue

      long longValue()
      Returns the long value.
      Returns:
      the long value
    • typeKind

      default TypeKind typeKind()
      Returns the type of the constant.
      Specified by:
      typeKind in interface LoadableConstantEntry
      Returns:
      the type of the constant