Package de.hsh.graja.util.comment
Enum Class Verbatim.WhitespaceExpansion
- All Implemented Interfaces:
Serializable
,Comparable<Verbatim.WhitespaceExpansion>
,Constable
- Enclosing class:
- Verbatim
An instance of this enum defines how whitespaces are expanded in a Verbatim.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis defines an expansion of whitespaces as symbols.This defines an expansion of tabulator (U+0009) to a number of spaces.This defines an expansion of of tabulator (U+0009) to a symbol. -
Method Summary
Modifier and TypeMethodDescriptionstatic Verbatim.WhitespaceExpansion
Returns the enum constant of this class with the specified name.static Verbatim.WhitespaceExpansion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TABS_TO_SPACES_AND_LINE_BREAKS_TO_LF
This defines an expansion of tabulator (U+0009) to a number of spaces. The number is defined byVerbatim.TABWIDTH
. -
ALL_TO_SYMBOLS
This defines an expansion of whitespaces as symbols. The symbols are defined in class constantsVerbatim.LINE_FEED
,Verbatim.CARRIAGE_RETURN
,Verbatim.TABULATOR_EXPANSION
,Verbatim.TABULATOR_START
, andVerbatim.TABULATOR_STOP
. -
TABS_TO_SYMBOLS
This defines an expansion of of tabulator (U+0009) to a symbol. The symbols are defined byVerbatim.TABULATOR_EXPANSION
,Verbatim.TABULATOR_START
, andVerbatim.TABULATOR_STOP
.
-
-
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
-