Package com.google.api.client.json
Enum JsonToken
- All Implemented Interfaces:
Serializable
,Comparable<JsonToken>
JSON token in the low-level JSON library.
- Since:
- 1.3
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEnd of a JSON array (']').End of a JSON object ('}').JSON field name.Some other token.Start of a JSON array ('[').Start of a JSON object ('{').JSON fieldfalse
value.JSONnull
.JSON field number value of an arbitrary-precision decimal number.JSON field number value of an integer with an arbitrary number of digits and no fractional part.JSON field string value.JSON fieldtrue
value. -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
START_ARRAY
Start of a JSON array ('['). -
END_ARRAY
End of a JSON array (']'). -
START_OBJECT
Start of a JSON object ('{'). -
END_OBJECT
End of a JSON object ('}'). -
FIELD_NAME
JSON field name. -
VALUE_STRING
JSON field string value. -
VALUE_NUMBER_INT
JSON field number value of an integer with an arbitrary number of digits and no fractional part. -
VALUE_NUMBER_FLOAT
JSON field number value of an arbitrary-precision decimal number. -
VALUE_TRUE
JSON fieldtrue
value. -
VALUE_FALSE
JSON fieldfalse
value. -
VALUE_NULL
JSONnull
. -
NOT_AVAILABLE
Some other token.
-
-
Constructor Details
-
JsonToken
private JsonToken()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-