Package org.jboss.jandex
Enum TypeTarget.Usage
- All Implemented Interfaces:
Serializable
,Comparable<TypeTarget.Usage>
,java.lang.constant.Constable
- Enclosing class:
TypeTarget
Specifies a form of usage of a type annotation
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates a type annotation occurs within class' extends or implements clauseIndicates a type annotation occurs within a field, method receiver, or method return typeIndicates a type annotation occurs within a method parameterIndicates a type annotation occurs within the throws clause of a methodIndicates a type annotation occurs within a method or class type parameterIndicates a type annotation occurs within the bound of a method or class type parameter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeTarget.Usage
Returns the enum constant of this type with the specified name.static TypeTarget.Usage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EMPTY
Indicates a type annotation occurs within a field, method receiver, or method return type -
CLASS_EXTENDS
Indicates a type annotation occurs within class' extends or implements clause -
METHOD_PARAMETER
Indicates a type annotation occurs within a method parameter -
TYPE_PARAMETER
Indicates a type annotation occurs within a method or class type parameter -
TYPE_PARAMETER_BOUND
Indicates a type annotation occurs within the bound of a method or class type parameter -
THROWS
Indicates a type annotation occurs within the throws clause of a method
-
-
Constructor Details
-
Usage
private Usage()
-
-
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
-