Enum Class TokenRole
- All Implemented Interfaces:
Serializable,Comparable<TokenRole>,Constable
How important a token is to include in the output and why it exists in the
token stream.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRequired spaces that may be converted to a line break and other additional whitespace if necessary to shorten a line.Optional tokens that can be printed to the output if standard line breaks between statements and other common locations are desired.Required tokens must be printed to the output as they are.Required spaces that can be converted to more whitespace but not other kinds of whitespace. -
Field Summary
Fields -
Method Summary
-
Enum Constant Details
-
EXACT
Required tokens must be printed to the output as they are. -
EXTENDABLE_SPACE
Required spaces that can be converted to more whitespace but not other kinds of whitespace. -
BREAKABLE_SPACE
Required spaces that may be converted to a line break and other additional whitespace if necessary to shorten a line. -
COMMON_FORMATTING
Optional tokens that can be printed to the output if standard line breaks between statements and other common locations are desired. May be extended by additional whitespace for formatting.
-
-
Field Details
-
DEFAULT
-
-
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
-