public enum DefaultLocation extends java.lang.Enum<DefaultLocation>
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_UPPER_BOUNDS
Apply default annotations to unannotated, but explicit upper bounds:
<T extends Object>
TODO: more doc, relation to other UPPER_BOUNDS |
FIELD
Apply default annotations to all unannotated raw types
of fields.
|
IMPLICIT_UPPER_BOUNDS
Apply default annotations to unannotated type variables:
<T>
TODO: more doc, relation to other UPPER_BOUNDS |
LOCAL_VARIABLE
Apply default annotations to all unannotated raw types
of local variables, casts, and instanceof.
|
OTHERWISE
Apply if nothing more concrete is provided.
|
PARAMETERS
Apply default annotations to all unannotated raw types
of formal parameter types.
|
RECEIVERS
Apply default annotations to all unannotated raw types
of receiver types.
|
RESOURCE_VARIABLE
Apply default annotations to all unannotated raw types
of resource variables.
|
RETURNS
Apply default annotations to all unannotated raw types
of return types.
|
UPPER_BOUNDS
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 DefaultLocation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DefaultLocation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultLocation FIELD
public static final DefaultLocation LOCAL_VARIABLE
TODO: should cast/instanceof be separated?
public static final DefaultLocation RESOURCE_VARIABLE
public static final DefaultLocation EXCEPTION_PARAMETER
public static final DefaultLocation RECEIVERS
public static final DefaultLocation PARAMETERS
public static final DefaultLocation RETURNS
public static final DefaultLocation UPPER_BOUNDS
public static final DefaultLocation EXPLICIT_UPPER_BOUNDS
<T extends Object>
TODO: more doc, relation to other UPPER_BOUNDSpublic static final DefaultLocation IMPLICIT_UPPER_BOUNDS
<T>
TODO: more doc, relation to other UPPER_BOUNDSpublic static final DefaultLocation OTHERWISE
public static final DefaultLocation ALL
public static DefaultLocation[] values()
for (DefaultLocation c : DefaultLocation.values()) System.out.println(c);
public static DefaultLocation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null