de.unkrig.commons.text.json
Enum JsonScanner.TokenType

java.lang.Object
  extended by java.lang.Enum<JsonScanner.TokenType>
      extended by 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.


Enum Constant Summary
CXX_COMMENT
           
DOUBLE_QUOTE
           
END_OF_IGNORABLES
           
KEYWORD
           
MULTI_LINE_C_COMMENT_BEGINNING
           
MULTI_LINE_C_COMMENT_END
           
MULTI_LINE_C_COMMENT_MIDDLE
           
NUMBER
           
OPERATOR
           
SINGLE_LINE_C_COMMENT
           
SPACE
           
STRING_CHARS
           
STRING_ESCAPE
           
STRING_UNICODE_ESCAPE
           
 
Method Summary
static JsonScanner.TokenType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JsonScanner.TokenType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

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
Method Detail

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