Package org.jboss.jandex
Enum AnnotationValue.Kind
- All Implemented Interfaces:
Serializable
,Comparable<AnnotationValue.Kind>
- Enclosing class:
AnnotationValue
Specifies the kind of annotation value, which can be used to determine the underlying Java type.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates an array valueIndicates a primitive boolean valueIndicates a primitive byte valueIndicates a primitive character valueIndicates a Java Class valueIndicates a primitive double valueIndicates a Java Enum valueIndicates a primitive float valueIndicates a primitive integer valueIndicates a primitive long valueIndicates a nested annotation valueIndicates a primitive short valueIndicates a Java String valueIndicates the value type is unknown -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationValue.Kind
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 Details
-
BYTE
Indicates a primitive byte value -
SHORT
Indicates a primitive short value -
INTEGER
Indicates a primitive integer value -
CHARACTER
Indicates a primitive character value -
FLOAT
Indicates a primitive float value -
DOUBLE
Indicates a primitive double value -
LONG
Indicates a primitive long value -
BOOLEAN
Indicates a primitive boolean value -
CLASS
Indicates a Java Class value -
STRING
Indicates a Java String value -
ENUM
Indicates a Java Enum value -
ARRAY
Indicates an array value -
NESTED
Indicates a nested annotation value -
UNKNOWN
Indicates the value type is unknown
-
-
Constructor Details
-
Kind
private Kind()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-