public enum TypeUseLocation extends Enum<TypeUseLocation>
DefaultQualifier
annotation applies.
The order of enums is important. Defaults are applied in this order.
In particular, this means that OTHERWISE and ALL should be last.DefaultQualifier
,
ElementKind
Enum Constant and Description |
---|
ALL
Apply default annotations to all type uses other than uses of type parameters.
|
EXCEPTION_PARAMETER
Apply default annotations to all unannotated raw types
of exception parameters.
|
EXPLICIT_LOWER_BOUND
Apply default annotations to unannotated, but explicit lower bounds:
<? super Object> |
EXPLICIT_UPPER_BOUND
Apply default annotations to unannotated, but explicit upper bounds:
<T extends Object>
TODO: more doc, relation to other UPPER_BOUND |
FIELD
Apply default annotations to all unannotated raw types
of fields.
|
IMPLICIT_LOWER_BOUND
Apply default annotations to unannotated, but implicit lower bounds:
<T>
<?> |
IMPLICIT_UPPER_BOUND
Apply default annotations to unannotated type variables:
<T>
TODO: more doc, relation to other UPPER_BOUND |
LOCAL_VARIABLE
Apply default annotations to all unannotated raw types
of local variables, casts, and instanceof.
|
LOWER_BOUND
Apply default annotations to unannotated lower bounds
for type variables and wildcards both explicit ones in
extends clauses, and implicit upper bounds
when no explicit extends or super
clause is present
|
OTHERWISE
Apply if nothing more concrete is provided.
|
PARAMETER
Apply default annotations to all unannotated raw types
of formal parameter types.
|
RECEIVER
Apply default annotations to all unannotated raw types
of receiver types.
|
RESOURCE_VARIABLE
Apply default annotations to all unannotated raw types
of resource variables.
|
RETURN
Apply default annotations to all unannotated raw types
of return types.
|
UPPER_BOUND
Apply default annotations to unannotated upper bounds: both
explicit ones in extends clauses, and implicit upper bounds
when no explicit extends or super clause is
present.
|
Modifier and Type | Method and Description |
---|---|
static TypeUseLocation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeUseLocation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeUseLocation FIELD
public static final TypeUseLocation LOCAL_VARIABLE
TODO: should cast/instanceof be separated?
public static final TypeUseLocation RESOURCE_VARIABLE
public static final TypeUseLocation EXCEPTION_PARAMETER
public static final TypeUseLocation RECEIVER
public static final TypeUseLocation PARAMETER
public static final TypeUseLocation RETURN
public static final TypeUseLocation LOWER_BOUND
public static final TypeUseLocation EXPLICIT_LOWER_BOUND
<? super Object>
public static final TypeUseLocation IMPLICIT_LOWER_BOUND
<T>
<?>
public static final TypeUseLocation UPPER_BOUND
public static final TypeUseLocation EXPLICIT_UPPER_BOUND
<T extends Object>
TODO: more doc, relation to other UPPER_BOUNDpublic static final TypeUseLocation IMPLICIT_UPPER_BOUND
<T>
TODO: more doc, relation to other UPPER_BOUNDpublic static final TypeUseLocation OTHERWISE
public static final TypeUseLocation ALL
public static TypeUseLocation[] values()
for (TypeUseLocation c : TypeUseLocation.values()) System.out.println(c);
public static TypeUseLocation 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 null