Enum AnnotationUseStyleCheck.ElementStyleOption
java.lang.Object
java.lang.Enum<AnnotationUseStyleCheck.ElementStyleOption>
com.puppycrawl.tools.checkstyle.checks.annotation.AnnotationUseStyleCheck.ElementStyleOption
- All Implemented Interfaces:
Serializable
,Comparable<AnnotationUseStyleCheck.ElementStyleOption>
- Enclosing class:
- AnnotationUseStyleCheck
public static enum AnnotationUseStyleCheck.ElementStyleOption
extends Enum<AnnotationUseStyleCheck.ElementStyleOption>
Defines the styles for defining elements in an annotation.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCompact exampleCompact exampleExpanded exampleMixed styles. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EXPANDED
Expanded example@SuppressWarnings(value={"unchecked","unused",})
. -
COMPACT
Compact example@SuppressWarnings({"unchecked","unused",})
or
@SuppressWarnings("unchecked")
. -
COMPACT_NO_ARRAY
Compact example@SuppressWarnings("unchecked")
. -
IGNORE
Mixed styles.
-
-
Constructor Details
-
ElementStyleOption
private ElementStyleOption()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-