public enum DefaultLocation extends 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| Enum Constant and Description |
|---|
ALL
Apply default annotations to all unannotated types.
|
LOCALS
Apply default annotations to all unannotated raw types
of local types (local variables, casts, and instanceof).
|
OTHERWISE
Apply if nothing more concrete is provided.
|
PARAMETERS
Apply default annotations to all unannotated raw types
of parameter types.
|
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(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 LOCALS
public static final DefaultLocation PARAMETERS
public static final DefaultLocation RETURNS
public static final DefaultLocation UPPER_BOUNDS
public 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(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