Package org.jboss.jandex
Enum TypeTarget.Usage
- java.lang.Object
-
- java.lang.Enum<TypeTarget.Usage>
-
- org.jboss.jandex.TypeTarget.Usage
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TypeTarget.Usage>
- Enclosing class:
- TypeTarget
public static enum TypeTarget.Usage extends java.lang.Enum<TypeTarget.Usage>
Specifies a form of usage of a type annotation
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLASS_EXTENDS
Indicates a type annotation occurs within class' extends or implements clauseEMPTY
Indicates a type annotation occurs within a field, method receiver, or method return typeMETHOD_PARAMETER
Indicates a type annotation occurs within a method parameterTHROWS
Indicates a type annotation occurs within the throws clause of a methodTYPE_PARAMETER
Indicates a type annotation occurs within a method or class type parameterTYPE_PARAMETER_BOUND
Indicates a type annotation occurs within the bound of a method or class type parameter
-
Constructor Summary
Constructors Modifier Constructor Description private
Usage()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeTarget.Usage
valueOf(java.lang.String name)
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 Detail
-
EMPTY
public static final TypeTarget.Usage EMPTY
Indicates a type annotation occurs within a field, method receiver, or method return type
-
CLASS_EXTENDS
public static final TypeTarget.Usage CLASS_EXTENDS
Indicates a type annotation occurs within class' extends or implements clause
-
METHOD_PARAMETER
public static final TypeTarget.Usage METHOD_PARAMETER
Indicates a type annotation occurs within a method parameter
-
TYPE_PARAMETER
public static final TypeTarget.Usage TYPE_PARAMETER
Indicates a type annotation occurs within a method or class type parameter
-
TYPE_PARAMETER_BOUND
public static final TypeTarget.Usage TYPE_PARAMETER_BOUND
Indicates a type annotation occurs within the bound of a method or class type parameter
-
THROWS
public static final TypeTarget.Usage THROWS
Indicates a type annotation occurs within the throws clause of a method
-
-
Method Detail
-
values
public static TypeTarget.Usage[] 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 (TypeTarget.Usage c : TypeTarget.Usage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeTarget.Usage 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
-
-