Package org.jboss.jandex
Enum AnnotationTarget.Kind
- All Implemented Interfaces:
Serializable
,Comparable<AnnotationTarget.Kind>
,java.lang.constant.Constable
- Enclosing interface:
AnnotationTarget
Specifies the kind of object a target represents.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn object of typeClassInfo
An object of typeFieldInfo
An object of typeMethodInfo
An object of typeMethodParameterInfo
An object of typeRecordComponentInfo
An object of typeTypeTarget
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationTarget.Kind
Returns the enum constant of this type with the specified name.static AnnotationTarget.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CLASS
An object of typeClassInfo
-
FIELD
An object of typeFieldInfo
-
METHOD
An object of typeMethodInfo
-
METHOD_PARAMETER
An object of typeMethodParameterInfo
-
TYPE
An object of typeTypeTarget
-
RECORD_COMPONENT
An object of typeRecordComponentInfo
- Since:
- 2.4
-
-
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
-