Class SimpleElementValue

java.lang.Object
org.apache.tomcat.util.bcel.classfile.ElementValue
org.apache.tomcat.util.bcel.classfile.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 Details

    • getIndex

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

      public 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