Package org.jboss.jandex
Enum AnnotationTarget.Kind
- All Implemented Interfaces:
Serializable,Comparable<AnnotationTarget.Kind>
- Enclosing interface:
- AnnotationTarget
Specifies the kind of object a target represents.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn object of typeClassInfoAn object of typeFieldInfoAn object of typeMethodInfoAn object of typeMethodParameterInfoAn object of typeRecordComponentInfoAn object of typeTypeTarget -
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationTarget.KindReturns 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
-
-
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
-