Enum WrapPolicy
- java.lang.Object
-
- java.lang.Enum<WrapPolicy>
-
- org.openrewrite.checkstyle.policy.WrapPolicy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WrapPolicy>
public enum WrapPolicy extends java.lang.Enum<WrapPolicy>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WrapPolicyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WrapPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NL
public static final WrapPolicy NL
The token must be on a new line. For example:someVariable = aBigVariableNameToMakeThings + "this may work" + lookVeryInteresting;
-
EOL
public static final WrapPolicy EOL
The token must be at the end of the line. For example:someVariable = aBigVariableNameToMakeThings + "this may work" + lookVeryInteresting;
-
-
Method Detail
-
values
public static WrapPolicy[] 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 (WrapPolicy c : WrapPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WrapPolicy 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
-
-