public static enum JSONToken.Type extends Enum<JSONToken.Type>
| Enum Constant and Description |
|---|
BOOLEAN_VALUE
A
true or false value. |
END_ARRAY
The end of an array, denoted by the
] character. |
END_OBJECT
The end of an object, denoted by the
} character. |
NULL_VALUE
A null value, represented by the
null token. |
NUMERIC_VALUE
A numeric value, starts with a digit, contains only digits or the period
character and is not quoted.
|
PROPERTY_NAME
The name of a property, can be any string, the value is quoted and
escaped.
|
START_ARRAY
The start of an array denoted by the
[ character. |
START_OBJECT
The start of an object denoted by the
{ character. |
STRING_VALUE
A textual value, can be any string, the value is quoted and escaped.
|
| Modifier and Type | Method and Description |
|---|---|
static JSONToken.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JSONToken.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSONToken.Type BOOLEAN_VALUE
true or false value.public static final JSONToken.Type END_ARRAY
] character.public static final JSONToken.Type END_OBJECT
} character.public static final JSONToken.Type NULL_VALUE
null token.public static final JSONToken.Type NUMERIC_VALUE
public static final JSONToken.Type PROPERTY_NAME
: character.public static final JSONToken.Type START_ARRAY
[ character.public static final JSONToken.Type START_OBJECT
{ character.public static final JSONToken.Type STRING_VALUE
public static JSONToken.Type[] values()
for (JSONToken.Type c : JSONToken.Type.values()) System.out.println(c);
public static JSONToken.Type 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 null