- All Implemented Interfaces:
Serializable
,Comparable<JsonReader.Token>
- Enclosing interface:
JsonReader
A structure, name, or value type in a JSON-encoded string.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe opening of a JSON array.The opening of a JSON object.A JSONtrue
orfalse
.A JSONnull
.A JSON number represented in this API by a Javadouble
,long
, orint
.A JSON string. -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonReader.Token
Returns the enum constant of this type with the specified name.static JsonReader.Token[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BEGIN_ARRAY
The opening of a JSON array. Written usingJsonWriter.beginArray()
and read usingJsonReader.beginArray()
. -
BEGIN_OBJECT
The opening of a JSON object. Written usingJsonWriter.beginObject()
and read usingJsonReader.beginObject(io.avaje.jsonb.spi.PropertyNames)
. -
STRING
A JSON string. -
NUMBER
A JSON number represented in this API by a Javadouble
,long
, orint
. -
BOOLEAN
A JSONtrue
orfalse
. -
NULL
A JSONnull
.
-
-
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
-