public static enum TypeTarget.Usage extends Enum<TypeTarget.Usage>
Enum Constant and Description |
---|
CLASS_EXTENDS
Indicates a type annotation occurs within class' extends or implements clause
|
EMPTY
Indicates a type annotation occurs within a field, method receiver, or method return type
|
METHOD_PARAMETER
Indicates a type annotation occurs within a method parameter
|
THROWS
Indicates a type annotation occurs within the throws clause of a method
|
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
|
Modifier and Type | Method and Description |
---|---|
static TypeTarget.Usage |
valueOf(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.
|
public static final TypeTarget.Usage EMPTY
public static final TypeTarget.Usage CLASS_EXTENDS
public static final TypeTarget.Usage METHOD_PARAMETER
public static final TypeTarget.Usage TYPE_PARAMETER
public static final TypeTarget.Usage TYPE_PARAMETER_BOUND
public static final TypeTarget.Usage THROWS
public static TypeTarget.Usage[] values()
for (TypeTarget.Usage c : TypeTarget.Usage.values()) System.out.println(c);
public static TypeTarget.Usage valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2018 JBoss by Red Hat. All rights reserved.