public static enum JSONTokener.JSONToken extends java.lang.Enum<JSONTokener.JSONToken>
JSONTokener
and consumed by related JSON objects
to allow strict versus lenient parsing.Enum Constant and Description |
---|
END |
END_ARRAY |
END_OBJECT |
KEY_SEPARATOR |
START_ARRAY |
START_OBJECT |
VALUE |
VALUE_SEPARATOR |
Modifier and Type | Method and Description |
---|---|
static JSONTokener.JSONToken |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JSONTokener.JSONToken[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSONTokener.JSONToken VALUE
public static final JSONTokener.JSONToken START_ARRAY
public static final JSONTokener.JSONToken END_ARRAY
public static final JSONTokener.JSONToken START_OBJECT
public static final JSONTokener.JSONToken END_OBJECT
public static final JSONTokener.JSONToken KEY_SEPARATOR
public static final JSONTokener.JSONToken VALUE_SEPARATOR
public static final JSONTokener.JSONToken END
public static JSONTokener.JSONToken[] values()
for (JSONTokener.JSONToken c : JSONTokener.JSONToken.values()) System.out.println(c);
public static JSONTokener.JSONToken valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null