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 Constants Enum Constant Description COMPACT
Compact exampleCOMPACT_NO_ARRAY
Compact exampleEXPANDED
Expanded exampleIGNORE
Mixed styles.
-
Constructor Summary
Constructors Modifier Constructor Description private
ElementStyleOption()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AnnotationUseStyleCheck.ElementStyleOption
valueOf(String name)
Returns the enum constant of this type with the specified name.static AnnotationUseStyleCheck.ElementStyleOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXPANDED
public static final AnnotationUseStyleCheck.ElementStyleOption EXPANDED
Expanded example@SuppressWarnings(value={"unchecked","unused",})
.
-
COMPACT
public static final AnnotationUseStyleCheck.ElementStyleOption COMPACT
Compact example@SuppressWarnings({"unchecked","unused",})
or
@SuppressWarnings("unchecked")
.
-
COMPACT_NO_ARRAY
public static final AnnotationUseStyleCheck.ElementStyleOption COMPACT_NO_ARRAY
Compact example@SuppressWarnings("unchecked")
.
-
IGNORE
public static final AnnotationUseStyleCheck.ElementStyleOption IGNORE
Mixed styles.
-
-
Constructor Detail
-
ElementStyleOption
private ElementStyleOption()
-
-
Method Detail
-
values
public static AnnotationUseStyleCheck.ElementStyleOption[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AnnotationUseStyleCheck.ElementStyleOption c : AnnotationUseStyleCheck.ElementStyleOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnnotationUseStyleCheck.ElementStyleOption valueOf(String name)
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
-
-