Package org.glassfish.json
Enum JsonTokenizer.JsonToken
- java.lang.Object
-
- java.lang.Enum<JsonTokenizer.JsonToken>
-
- org.glassfish.json.JsonTokenizer.JsonToken
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JsonTokenizer.JsonToken>
- Enclosing class:
- JsonTokenizer
static enum JsonTokenizer.JsonToken extends java.lang.Enum<JsonTokenizer.JsonToken>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLON
COMMA
CURLYCLOSE
CURLYOPEN
EOF
FALSE
NULL
NUMBER
SQUARECLOSE
SQUAREOPEN
STRING
TRUE
-
Field Summary
Fields Modifier and Type Field Description private JsonParser.Event
event
private boolean
value
-
Constructor Summary
Constructors Modifier Constructor Description private
JsonToken(JsonParser.Event event, boolean value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) JsonParser.Event
getEvent()
(package private) boolean
isValue()
static JsonTokenizer.JsonToken
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JsonTokenizer.JsonToken[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CURLYOPEN
public static final JsonTokenizer.JsonToken CURLYOPEN
-
SQUAREOPEN
public static final JsonTokenizer.JsonToken SQUAREOPEN
-
COLON
public static final JsonTokenizer.JsonToken COLON
-
COMMA
public static final JsonTokenizer.JsonToken COMMA
-
STRING
public static final JsonTokenizer.JsonToken STRING
-
NUMBER
public static final JsonTokenizer.JsonToken NUMBER
-
TRUE
public static final JsonTokenizer.JsonToken TRUE
-
FALSE
public static final JsonTokenizer.JsonToken FALSE
-
NULL
public static final JsonTokenizer.JsonToken NULL
-
CURLYCLOSE
public static final JsonTokenizer.JsonToken CURLYCLOSE
-
SQUARECLOSE
public static final JsonTokenizer.JsonToken SQUARECLOSE
-
EOF
public static final JsonTokenizer.JsonToken EOF
-
-
Field Detail
-
event
private final JsonParser.Event event
-
value
private final boolean value
-
-
Constructor Detail
-
JsonToken
private JsonToken(JsonParser.Event event, boolean value)
-
-
Method Detail
-
values
public static JsonTokenizer.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 (JsonTokenizer.JsonToken c : JsonTokenizer.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 JsonTokenizer.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
-
getEvent
JsonParser.Event getEvent()
-
isValue
boolean isValue()
-
-