Package org.jboss.jandex
Enum AnnotationValue.Kind
- java.lang.Object
-
- java.lang.Enum<AnnotationValue.Kind>
-
- org.jboss.jandex.AnnotationValue.Kind
-
- All Implemented Interfaces:
Serializable
,Comparable<AnnotationValue.Kind>
- Enclosing class:
- AnnotationValue
public static enum AnnotationValue.Kind extends Enum<AnnotationValue.Kind>
Specifies the kind of annotation value, which can be used to determine the underlying Java type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY
Indicates an array valueBOOLEAN
Indicates a primitive boolean valueBYTE
Indicates a primitive byte valueCHARACTER
Indicates a primitive character valueCLASS
Indicates a Java Class valueDOUBLE
Indicates a primitive double valueENUM
Indicates a Java Enum valueFLOAT
Indicates a primitive float valueINTEGER
Indicates a primitive integer valueLONG
Indicates a primitive long valueNESTED
Indicates a nested annotation valueSHORT
Indicates a primitive short valueSTRING
Indicates a Java String valueUNKNOWN
Indicates the value type is unknown
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AnnotationValue.Kind
valueOf(String name)
Returns the enum constant of this type with the specified name.static AnnotationValue.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BYTE
public static final AnnotationValue.Kind BYTE
Indicates a primitive byte value
-
SHORT
public static final AnnotationValue.Kind SHORT
Indicates a primitive short value
-
INTEGER
public static final AnnotationValue.Kind INTEGER
Indicates a primitive integer value
-
CHARACTER
public static final AnnotationValue.Kind CHARACTER
Indicates a primitive character value
-
FLOAT
public static final AnnotationValue.Kind FLOAT
Indicates a primitive float value
-
DOUBLE
public static final AnnotationValue.Kind DOUBLE
Indicates a primitive double value
-
LONG
public static final AnnotationValue.Kind LONG
Indicates a primitive long value
-
BOOLEAN
public static final AnnotationValue.Kind BOOLEAN
Indicates a primitive boolean value
-
CLASS
public static final AnnotationValue.Kind CLASS
Indicates a Java Class value
-
STRING
public static final AnnotationValue.Kind STRING
Indicates a Java String value
-
ENUM
public static final AnnotationValue.Kind ENUM
Indicates a Java Enum value
-
ARRAY
public static final AnnotationValue.Kind ARRAY
Indicates an array value
-
NESTED
public static final AnnotationValue.Kind NESTED
Indicates a nested annotation value
-
UNKNOWN
public static final AnnotationValue.Kind UNKNOWN
Indicates the value type is unknown
-
-
Method Detail
-
values
public static AnnotationValue.Kind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AnnotationValue.Kind c : AnnotationValue.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnnotationValue.Kind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-