Enum Class SuppressedBy
- All Implemented Interfaces:
Serializable
,Comparable<SuppressedBy>
,Constable
A centralised list of tokens supported by the AP for use in
SuppressWarnings
annotations. Collected here mainly for
self-documentation purposes.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSuppress warnings for constraint violations Usage:@SuppressWarnings('constraints')
Suppress warnings when a mixin target specified by name is located in the default package Usage:@SuppressWarnings('default-package')
Suppress warnings when a class, method or field mapping cannot be located Usage:@SuppressWarnings('mapping')
Suppress warnings for when an@Overwrite
method is missing javadoc, or author or reason tags Usage:@SuppressWarnings('overwrite')
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')
The default java "raw types" suppressions Usage:@SuppressWarnings('rawtypes')
Suppress warnings when an injector target cannot be found Usage:@SuppressWarnings('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')
Suppress warnings about overwrite visibility upgrading/downgrading target visibility Usage:@SuppressWarnings('visibility')
-
Method Summary
Modifier and TypeMethodDescriptiongetToken()
Get the string token which is used in theSuppressWarnings
annotationstatic SuppressedBy
Returns the enum constant of this class with the specified name.static SuppressedBy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONSTRAINTS
Suppress warnings for constraint violationsUsage:@SuppressWarnings('constraints')
-
VISIBILITY
Suppress warnings about overwrite visibility upgrading/downgrading target visibilityUsage:@SuppressWarnings('visibility')
-
TARGET
Suppress warnings when an injector target cannot be foundUsage:@SuppressWarnings('target')
-
MAPPING
Suppress warnings when a class, method or field mapping cannot be locatedUsage:@SuppressWarnings('mapping')
-
OVERWRITE
Suppress warnings for when an@Overwrite
method is missing javadoc, or author or reason tagsUsage:@SuppressWarnings('overwrite')
-
DEFAULT_PACKAGE
Suppress warnings when a mixin target specified by name is located in the default packageUsage:@SuppressWarnings('default-package')
-
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 reasonUsage:@SuppressWarnings('public-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 classesUsage:@SuppressWarnings('unresolvable-target')
-
RAW_TYPES
The default java "raw types" suppressionsUsage:@SuppressWarnings('rawtypes')
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getToken
Get the string token which is used in theSuppressWarnings
annotation
-