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.
-
-
Field Summary
-
Fields inherited from class org.apache.tomcat.util.bcel.classfile.ElementValue
ANNOTATION, ARRAY, CLASS, ENUM_CONSTANT, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHAR, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, STRING
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex()Returns the constant pool index of this element value.java.lang.StringstringifyValue()Returns the string representation of this element value based on its type.-
Methods inherited from class org.apache.tomcat.util.bcel.classfile.ElementValue
readElementValue, readElementValue
-
-
-
-
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:
stringifyValuein classElementValue- Returns:
- the string representation of the value
-
-