de.unkrig.commons.text.json
Enum JsonScanner.TokenType
java.lang.Object
java.lang.Enum<JsonScanner.TokenType>
de.unkrig.commons.text.json.JsonScanner.TokenType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<JsonScanner.TokenType>
- Enclosing class:
- JsonScanner
public static enum JsonScanner.TokenType
- extends java.lang.Enum<JsonScanner.TokenType>
Representation of the type of a token.
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
SPACE
public static final JsonScanner.TokenType SPACE
CXX_COMMENT
public static final JsonScanner.TokenType CXX_COMMENT
SINGLE_LINE_C_COMMENT
public static final JsonScanner.TokenType SINGLE_LINE_C_COMMENT
MULTI_LINE_C_COMMENT_BEGINNING
public static final JsonScanner.TokenType MULTI_LINE_C_COMMENT_BEGINNING
MULTI_LINE_C_COMMENT_MIDDLE
public static final JsonScanner.TokenType MULTI_LINE_C_COMMENT_MIDDLE
MULTI_LINE_C_COMMENT_END
public static final JsonScanner.TokenType MULTI_LINE_C_COMMENT_END
END_OF_IGNORABLES
public static final JsonScanner.TokenType END_OF_IGNORABLES
OPERATOR
public static final JsonScanner.TokenType OPERATOR
NUMBER
public static final JsonScanner.TokenType NUMBER
KEYWORD
public static final JsonScanner.TokenType KEYWORD
DOUBLE_QUOTE
public static final JsonScanner.TokenType DOUBLE_QUOTE
STRING_UNICODE_ESCAPE
public static final JsonScanner.TokenType STRING_UNICODE_ESCAPE
STRING_ESCAPE
public static final JsonScanner.TokenType STRING_ESCAPE
STRING_CHARS
public static final JsonScanner.TokenType STRING_CHARS
values
public static JsonScanner.TokenType[] 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 (JsonScanner.TokenType c : JsonScanner.TokenType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static JsonScanner.TokenType 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 name
java.lang.NullPointerException - if the argument is null