- java.lang.Object
-
- java.lang.Enum<AnnotationMember.Kind>
-
- jakarta.enterprise.lang.model.AnnotationMember.Kind
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AnnotationMember.Kind>
- Enclosing interface:
- AnnotationMember
public static enum AnnotationMember.Kind extends java.lang.Enum<AnnotationMember.Kind>
The kind of the annotation member value.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY
An array value.BOOLEAN
A primitiveboolean
value.BYTE
A primitivebyte
value.CHAR
A primitivechar
value.CLASS
AClass
value.DOUBLE
A primitivedouble
value.ENUM
AnEnum
value.FLOAT
A primitivefloat
value.INT
A primitiveint
value.LONG
A primitivelong
value.NESTED_ANNOTATION
A nestedAnnotation
value.SHORT
A primitiveshort
value.STRING
AString
value.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AnnotationMember.Kind
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AnnotationMember.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final AnnotationMember.Kind BOOLEAN
A primitiveboolean
value.
-
BYTE
public static final AnnotationMember.Kind BYTE
A primitivebyte
value.
-
SHORT
public static final AnnotationMember.Kind SHORT
A primitiveshort
value.
-
INT
public static final AnnotationMember.Kind INT
A primitiveint
value.
-
LONG
public static final AnnotationMember.Kind LONG
A primitivelong
value.
-
FLOAT
public static final AnnotationMember.Kind FLOAT
A primitivefloat
value.
-
DOUBLE
public static final AnnotationMember.Kind DOUBLE
A primitivedouble
value.
-
CHAR
public static final AnnotationMember.Kind CHAR
A primitivechar
value.
-
STRING
public static final AnnotationMember.Kind STRING
AString
value.
-
ENUM
public static final AnnotationMember.Kind ENUM
AnEnum
value.
-
CLASS
public static final AnnotationMember.Kind CLASS
AClass
value. Represented asType
.
-
NESTED_ANNOTATION
public static final AnnotationMember.Kind NESTED_ANNOTATION
A nestedAnnotation
value. Represented asAnnotationInfo
.
-
ARRAY
public static final AnnotationMember.Kind ARRAY
An array value.
-
-
Method Detail
-
values
public static AnnotationMember.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 (AnnotationMember.Kind c : AnnotationMember.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 AnnotationMember.Kind valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-