Enum JsonLexer.Type
- java.lang.Object
-
- java.lang.Enum<JsonLexer.Type>
-
- de.undercouch.citeproc.helper.json.JsonLexer.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<JsonLexer.Type>
- Enclosing class:
- JsonLexer
public static enum JsonLexer.Type extends java.lang.Enum<JsonLexer.Type>
Token types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLONThe lexer has encountered a colon (most likely between a name and a value)COMMAThe lexer has encountered a comma (most likely between a name-value pairs in objects or values in arrays)END_ARRAYThe lexer has encountered the end of an arrayEND_OBJECTThe lexer has encountered the end of an objectFALSEThe lexer has encountered a 'false' literalNULLThe lexer has encountered a 'null' literalNUMBERThe lexer has encountered a number valueSTART_ARRAYThe lexer has encountered the start of an arraySTART_OBJECTThe lexer has encountered the start of an objectSTRINGThe lexer has encountered a string valueTRUEThe lexer has encountered a 'true' literal
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonLexer.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JsonLexer.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START_OBJECT
public static final JsonLexer.Type START_OBJECT
The lexer has encountered the start of an object
-
START_ARRAY
public static final JsonLexer.Type START_ARRAY
The lexer has encountered the start of an array
-
END_OBJECT
public static final JsonLexer.Type END_OBJECT
The lexer has encountered the end of an object
-
END_ARRAY
public static final JsonLexer.Type END_ARRAY
The lexer has encountered the end of an array
-
COLON
public static final JsonLexer.Type COLON
The lexer has encountered a colon (most likely between a name and a value)
-
COMMA
public static final JsonLexer.Type COMMA
The lexer has encountered a comma (most likely between a name-value pairs in objects or values in arrays)
-
STRING
public static final JsonLexer.Type STRING
The lexer has encountered a string value
-
NUMBER
public static final JsonLexer.Type NUMBER
The lexer has encountered a number value
-
TRUE
public static final JsonLexer.Type TRUE
The lexer has encountered a 'true' literal
-
FALSE
public static final JsonLexer.Type FALSE
The lexer has encountered a 'false' literal
-
NULL
public static final JsonLexer.Type NULL
The lexer has encountered a 'null' literal
-
-
Method Detail
-
values
public static JsonLexer.Type[] 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 (JsonLexer.Type c : JsonLexer.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonLexer.Type 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 namejava.lang.NullPointerException- if the argument is null
-
-