Enum AnnotationUseStyleCheck.ElementStyleOption
- java.lang.Object
-
- java.lang.Enum<AnnotationUseStyleCheck.ElementStyleOption>
-
- com.puppycrawl.tools.checkstyle.checks.annotation.AnnotationUseStyleCheck.ElementStyleOption
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AnnotationUseStyleCheck.ElementStyleOption>
- Enclosing class:
- AnnotationUseStyleCheck
public static enum AnnotationUseStyleCheck.ElementStyleOption extends java.lang.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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AnnotationUseStyleCheck.ElementStyleOption
valueOf(java.lang.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.
-
-
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(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-