Interface IntegerEntry

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

public sealed interface IntegerEntry extends AnnotationConstantValueEntry, ConstantValueEntry permits AbstractPoolEntry.IntegerEntryImpl
Models a CONSTANT_Integer_info constant in the constant pool of a classfile.
  • Method Details

    • intValue

      int intValue()
      Returns the integer value.
      Returns:
      the integer value
    • typeKind

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