Class SimpleElementValue


  • public class SimpleElementValue
    extends ElementValue
    Represents a simple element value in an annotation, where the value is a primitive type or String referenced by an index in the constant pool.
    • Method Detail

      • getIndex

        public int getIndex()
        Returns the constant pool index of this element value.
        Returns:
        the constant pool index
      • stringifyValue

        public java.lang.String stringifyValue()
        Returns the string representation of this element value based on its type.
        Specified by:
        stringifyValue in class ElementValue
        Returns:
        the string representation of the value