public enum WhiteSpace extends java.lang.Enum<WhiteSpace> implements InputElement
WhiteSpace
denotes the nonterminal symbol WhiteSpace, as defined by the Java Language Specification.
If the Java Language Specification is updated in a way that affects any white-space characters, this enum may be updated to reflect those changes. This means that new elements could be added. But it's highly unlikely.
Enum Constant and Description |
---|
CARRIAGE_RETURN
A
WhiteSpace with a String representation that equals the String literal "\r" . |
CARRIAGE_RETURN_LINE_FEED
A
WhiteSpace with a String representation that equals the String literal "\r\n" . |
FORM_FEED
A
WhiteSpace with a String representation that equals the String literal "\f" . |
HORIZONTAL_TAB
A
WhiteSpace with a String representation that equals the String literal "\t" . |
LINE_FEED
A
WhiteSpace with a String representation that equals the String literal "\n" . |
SPACE
A
WhiteSpace with a String representation that equals the String literal " " . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns a
String representation of this WhiteSpace instance. |
static WhiteSpace |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WhiteSpace[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WhiteSpace CARRIAGE_RETURN
WhiteSpace
with a String
representation that equals the String
literal "\r"
.public static final WhiteSpace CARRIAGE_RETURN_LINE_FEED
WhiteSpace
with a String
representation that equals the String
literal "\r\n"
.public static final WhiteSpace FORM_FEED
WhiteSpace
with a String
representation that equals the String
literal "\f"
.public static final WhiteSpace HORIZONTAL_TAB
WhiteSpace
with a String
representation that equals the String
literal "\t"
.public static final WhiteSpace LINE_FEED
WhiteSpace
with a String
representation that equals the String
literal "\n"
.public static final WhiteSpace SPACE
WhiteSpace
with a String
representation that equals the String
literal " "
.public static WhiteSpace[] values()
for (WhiteSpace c : WhiteSpace.values()) System.out.println(c);
public static WhiteSpace valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
String
representation of this WhiteSpace
instance.toString
in class java.lang.Enum<WhiteSpace>
String
representation of this WhiteSpace
instance