Package net.sf.saxon.ma.json
Enum JsonParser.JsonToken
- java.lang.Object
-
- java.lang.Enum<JsonParser.JsonToken>
-
- net.sf.saxon.ma.json.JsonParser.JsonToken
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JsonParser.JsonToken>
- Enclosing class:
- JsonParser
public static enum JsonParser.JsonToken extends java.lang.Enum<JsonParser.JsonToken>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLON
COMMA
EOF
FALSE
LCURLY
LSQB
NULL
NUMERIC_LITERAL
RCURLY
RSQB
STRING_LITERAL
TRUE
UNQUOTED_STRING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonParser.JsonToken
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JsonParser.JsonToken[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LSQB
public static final JsonParser.JsonToken LSQB
-
RSQB
public static final JsonParser.JsonToken RSQB
-
LCURLY
public static final JsonParser.JsonToken LCURLY
-
RCURLY
public static final JsonParser.JsonToken RCURLY
-
STRING_LITERAL
public static final JsonParser.JsonToken STRING_LITERAL
-
NUMERIC_LITERAL
public static final JsonParser.JsonToken NUMERIC_LITERAL
-
TRUE
public static final JsonParser.JsonToken TRUE
-
FALSE
public static final JsonParser.JsonToken FALSE
-
NULL
public static final JsonParser.JsonToken NULL
-
COLON
public static final JsonParser.JsonToken COLON
-
COMMA
public static final JsonParser.JsonToken COMMA
-
UNQUOTED_STRING
public static final JsonParser.JsonToken UNQUOTED_STRING
-
EOF
public static final JsonParser.JsonToken EOF
-
-
Method Detail
-
values
public static JsonParser.JsonToken[] 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 (JsonParser.JsonToken c : JsonParser.JsonToken.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonParser.JsonToken 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
-
-