public enum Token extends Enum<Token>
| Enum Constant and Description |
|---|
KEY
Key, value is available via
StreamingInput.getString(). |
LIST_END
End of a list.
|
LIST_START
Start of a list.
|
NULL
Null, special case of
VALUE. |
OBJECT_END
End of an object.
|
OBJECT_START
Start of an object.
|
VALUE
Value, available via getters (and
StreamingInput.getValue()). |
| Modifier and Type | Method and Description |
|---|---|
static Token |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Token[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Token LIST_START
public static final Token LIST_END
public static final Token OBJECT_START
public static final Token OBJECT_END
public static final Token KEY
StreamingInput.getString().public static final Token VALUE
StreamingInput.getValue()).public static Token[] values()
for (Token c : Token.values()) System.out.println(c);
public static Token valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016. All rights reserved.