public enum SuppressedBy extends java.lang.Enum<SuppressedBy>
SuppressWarnings annotations. Collected here mainly for
self-documentation purposes.| Enum Constant and Description |
|---|
CONSTRAINTS
Suppress warnings for constraint violations
Usage:
@SuppressWarnings('constraints')
|
DEFAULT_PACKAGE
Suppress warnings when a mixin target specified by name is located in the
default package
Usage:
@SuppressWarnings('default-package')
|
MAPPING
Suppress warnings when a class, method or field mapping cannot be located
Usage:
@SuppressWarnings('mapping')
|
OVERWRITE
Suppress warnings for when an @Overwrite method is
missing javadoc, or author or reason tags
Usage:
@SuppressWarnings('overwrite')
|
PUBLIC_TARGET
Suppress warnings when a mixin target is resolved by the AP as visible
but cannot be referenced with a class literal for some reason
Usage:
@SuppressWarnings('public-target')
|
RAW_TYPES
The default java "raw types" suppressions
Usage:
@SuppressWarnings('rawtypes')
|
TARGET
Suppress warnings when an injector target cannot be found
Usage:
@SuppressWarnings('target')
|
UNRESOLVABLE_TARGET
Suppress warning when a mixin target is resolved by the AP as imaginary
(unresolvable via Mirror at compile time), for example for anonymous
inner classes or other synthetic member classes
Usage:
@SuppressWarnings('unresolvable-target')
|
VISIBILITY
Suppress warnings about overwrite visibility upgrading/downgrading target
visibility
Usage:
@SuppressWarnings('visibility')
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getToken()
Get the string token which is used in the
SuppressWarnings
annotation |
static SuppressedBy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SuppressedBy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SuppressedBy CONSTRAINTS
@SuppressWarnings('constraints')
public static final SuppressedBy VISIBILITY
@SuppressWarnings('visibility')
public static final SuppressedBy TARGET
@SuppressWarnings('target')
public static final SuppressedBy MAPPING
@SuppressWarnings('mapping')
public static final SuppressedBy OVERWRITE
@Overwrite method is
missing javadoc, or author or reason tags
@SuppressWarnings('overwrite')
public static final SuppressedBy DEFAULT_PACKAGE
@SuppressWarnings('default-package')
public static final SuppressedBy PUBLIC_TARGET
@SuppressWarnings('public-target')
public static final SuppressedBy UNRESOLVABLE_TARGET
@SuppressWarnings('unresolvable-target')
public static final SuppressedBy RAW_TYPES
@SuppressWarnings('rawtypes')
public static SuppressedBy[] values()
for (SuppressedBy c : SuppressedBy.values()) System.out.println(c);
public static SuppressedBy 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 nullpublic java.lang.String getToken()
SuppressWarnings
annotation