Enum AnnotationUseStyleCheck.ElementStyle
- java.lang.Object
-
- java.lang.Enum<AnnotationUseStyleCheck.ElementStyle>
-
- com.puppycrawl.tools.checkstyle.checks.annotation.AnnotationUseStyleCheck.ElementStyle
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AnnotationUseStyleCheck.ElementStyle>
- Enclosing class:
- AnnotationUseStyleCheck
public static enum AnnotationUseStyleCheck.ElementStyle extends java.lang.Enum<AnnotationUseStyleCheck.ElementStyle>
Defines the styles for defining elements in an annotation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPACT
Compact exampleCOMPACT_NO_ARRAY
Compact example.]EXPANDED
Expanded exampleIGNORE
Mixed styles.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AnnotationUseStyleCheck.ElementStyle
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AnnotationUseStyleCheck.ElementStyle[]
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.ElementStyle EXPANDED
Expanded example@SuppressWarnings(value={"unchecked","unused",})
.
-
COMPACT
public static final AnnotationUseStyleCheck.ElementStyle COMPACT
Compact example@SuppressWarnings({"unchecked","unused",})
or
@SuppressWarnings("unchecked")
.
-
COMPACT_NO_ARRAY
public static final AnnotationUseStyleCheck.ElementStyle COMPACT_NO_ARRAY
Compact example.]@SuppressWarnings("unchecked")
.
-
IGNORE
public static final AnnotationUseStyleCheck.ElementStyle IGNORE
Mixed styles.
-
-
Method Detail
-
values
public static AnnotationUseStyleCheck.ElementStyle[] 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.ElementStyle c : AnnotationUseStyleCheck.ElementStyle.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.ElementStyle 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
-
-