Enum Class Token.WrapMode
- All Implemented Interfaces:
Serializable,Comparable<Token.WrapMode>,java.lang.constant.Constable
- Enclosing class:
Token
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWrap mode used for lines in anonymous class and lambda body.Wrap mode for the "Do not wrap" policy.Wrap mode for tokens that must be wrapped due to "Force wrap" setting.Wrap mode for the "Wrap all elements" policies.Wrap mode for the "Wrap where necessary" policies. -
Method Summary
Modifier and TypeMethodDescriptionstatic Token.WrapModeReturns the enum constant of this class with the specified name.static Token.WrapMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISABLED
Wrap mode for the "Do not wrap" policy. Tokens still should be indented as if wrapped when a preceding line break cannot be removed due to a line comment or formatting region restriction. -
WHERE_NECESSARY
Wrap mode for the "Wrap where necessary" policies. -
TOP_PRIORITY
Wrap mode for the "Wrap all elements" policies. -
FORCE
Wrap mode for tokens that must be wrapped due to "Force wrap" setting. -
BLOCK_INDENT
Wrap mode used for lines in anonymous class and lambda body. Means that tokens that are already in new line before wrapping, but their indentation should be adjusted in similar way to wrapping.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-