Enum LineWrappingHandler.LineWrappingOptions
- java.lang.Object
-
- java.lang.Enum<LineWrappingHandler.LineWrappingOptions>
-
- com.puppycrawl.tools.checkstyle.checks.indentation.LineWrappingHandler.LineWrappingOptions
-
- All Implemented Interfaces:
Serializable
,Comparable<LineWrappingHandler.LineWrappingOptions>
- Enclosing class:
- LineWrappingHandler
public static enum LineWrappingHandler.LineWrappingOptions extends Enum<LineWrappingHandler.LineWrappingOptions>
Enum to be used for test if first line's indentation should be checked or not.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IGNORE_FIRST_LINE
First line's indentation should NOT be checked.NONE
First line's indentation should be checked.
-
Constructor Summary
Constructors Modifier Constructor Description private
LineWrappingOptions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LineWrappingHandler.LineWrappingOptions
ofBoolean(boolean val)
Builds enum value from boolean.static LineWrappingHandler.LineWrappingOptions
valueOf(String name)
Returns the enum constant of this type with the specified name.static LineWrappingHandler.LineWrappingOptions[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE_FIRST_LINE
public static final LineWrappingHandler.LineWrappingOptions IGNORE_FIRST_LINE
First line's indentation should NOT be checked.
-
NONE
public static final LineWrappingHandler.LineWrappingOptions NONE
First line's indentation should be checked.
-
-
Constructor Detail
-
LineWrappingOptions
private LineWrappingOptions()
-
-
Method Detail
-
values
public static LineWrappingHandler.LineWrappingOptions[] 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 (LineWrappingHandler.LineWrappingOptions c : LineWrappingHandler.LineWrappingOptions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LineWrappingHandler.LineWrappingOptions 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
-
ofBoolean
public static LineWrappingHandler.LineWrappingOptions ofBoolean(boolean val)
Builds enum value from boolean.- Parameters:
val
- value.- Returns:
- enum instance.
-
-