Interface AnnotationValue.OfConstant

All Superinterfaces:
AnnotationValue
All Known Subinterfaces:
AnnotationValue.OfBoolean, AnnotationValue.OfByte, AnnotationValue.OfChar, AnnotationValue.OfDouble, AnnotationValue.OfFloat, AnnotationValue.OfInt, AnnotationValue.OfLong, AnnotationValue.OfShort, AnnotationValue.OfString
Enclosing interface:
AnnotationValue

Models a constant value of an element-value pair.
Since:
24
  • Method Details

    • constant

      Returns the constant pool entry backing this constant element.
      Returns:
      the constant pool entry backing this constant element
    • resolvedValue

      Constable resolvedValue()
      Returns the resolved live constant value, as an object. The type of the returned value may be a wrapper class or String.
      Returns:
      the resolved live constant value, as an object