-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable
public enum JsonReader.TokenA structure, name, or value type in a JSON-encoded string.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEGIN_ARRAYThe opening of a JSON array.and read using beginArray.
END_ARRAYThe closing of a JSON array.and read using endArray.
BEGIN_OBJECTThe opening of a JSON object.and read using beginObject.
END_OBJECTThe closing of a JSON object.and read using endObject.
NAMEA JSON property name. Within objects, tokens alternate between names andtheir values.
STRINGA JSON string.
NUMBERA JSON number represented in this API by a Java
{@code double},{@code * long}, or{@code int}.BOOLEANA JSON
{@code true}or{@code false}.NULLA JSON
{@code null}.END_DOCUMENTThe end of the JSON stream. This sentinel value is returned by to signal that the JSON-encoded value has no moretokens.
-
Method Summary
Modifier and Type Method Description static Array<JsonReader.Token>values()static JsonReader.TokenvalueOf(String name)-
-
Method Detail
-
values
static Array<JsonReader.Token> values()
-
valueOf
static JsonReader.Token valueOf(String name)
-
-
-
-