| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final boolean | |
| pack-priv final boolean | |
| pack-priv final boolean | |
| pack-priv final boolean | |
| pack-priv final boolean | |
| pack-priv final String | |
| pack-priv final byte[] | |
| pack-priv final char[] | |
| public static final JsonToken | END_ARRAY
END_ARRAY is returned when encountering ']' which signals ending of an Array value |
| public static final JsonToken | END_OBJECT
END_OBJECT is returned when encountering '}' which signals ending of an Object value |
| public static final JsonToken | FIELD_NAME
FIELD_NAME is returned when a String token is encountered as a field name (same lexical value, different function) |
| public static final JsonToken | NOT_AVAILABLE
NOT_AVAILABLE can be returned if |
| public static final JsonToken | START_ARRAY
START_ARRAY is returned when encountering '[' which signals starting of an Array value |
| public static final JsonToken | START_OBJECT
START_OBJECT is returned when encountering '{' which signals starting of an Object value. |
| public static final JsonToken | VALUE_EMBEDDED_OBJECT
Placeholder token returned when the input source has a concept
of embedded Object that are not accessible as usual structure
(of starting with |
| public static final JsonToken | VALUE_FALSE
VALUE_FALSE is returned when encountering literal "false" in value context |
| public static final JsonToken | VALUE_NULL
VALUE_NULL is returned when encountering literal "null" in value context |
| public static final JsonToken | VALUE_NUMBER_FLOAT
VALUE_NUMBER_FLOAT is returned when a numeric token other than integer is encountered: that is, a number that does have floating point or exponent marker in it, in addition to one or more digits (or, for non-textual formats, has internal floating-point representation). |
| public static final JsonToken | VALUE_NUMBER_INT
VALUE_NUMBER_INT is returned when an integer numeric token is encountered in value context: that is, a number that does not have floating point or exponent marker in it (consists only of an optional sign, followed by one or more digits; or, for binary formats, is indicated as integral number by internal representation). |
| public static final JsonToken | VALUE_STRING
VALUE_STRING is returned when a String token is encountered in value context (array element, field value, or root-level stand-alone value) |
| public static final JsonToken | VALUE_TRUE
VALUE_TRUE is returned when encountering literal "true" in value context |
| Access | Constructor and Description |
|---|---|
| private | JsonToken(String
representation for this token, if there is a
single static representation; null otherwise token, int Numeric id from id)JsonTokenId
|
| Modifier and Type | Method and Description |
|---|---|
| public final byte[] | |
| public final char[] | |
| public final String | |
| public final int | |
| public final boolean | |
| public final boolean | |
| public final boolean | Returns: True if this token is a scalar value token (one of
VALUE_xxx tokens), false otherwiseMethod that can be used to check whether this token represents a valid non-structured value. |
| public final boolean | Returns: True if this token is END_OBJECT or END_ARRAY,
false otherwiseAccessor that is functionally equivalent to:
|
| public final boolean | Returns: True if this token is START_OBJECT or START_ARRAY,
false otherwiseAccessor that is functionally equivalent to:
|
| public static String | Returns: String description of given tokenToken to get description for t)Helper method for constructing description like "Object value" given
|
| public static JsonToken | |
| public static JsonToken[] |
| _id | back to summary |
|---|---|
| pack-priv final int _id | |
| _isBoolean | back to summary |
|---|---|
| pack-priv final boolean _isBoolean | |
| _isNumber | back to summary |
|---|---|
| pack-priv final boolean _isNumber | |
| _isScalar | back to summary |
|---|---|
| pack-priv final boolean _isScalar | |
| _isStructEnd | back to summary |
|---|---|
| pack-priv final boolean _isStructEnd | |
| _isStructStart | back to summary |
|---|---|
| pack-priv final boolean _isStructStart | |
| _serialized | back to summary |
|---|---|
| pack-priv final String _serialized | |
| _serializedBytes | back to summary |
|---|---|
| pack-priv final byte[] _serializedBytes | |
| _serializedChars | back to summary |
|---|---|
| pack-priv final char[] _serializedChars | |
| END_ARRAY | back to summary |
|---|---|
| public static final JsonToken END_ARRAY END_ARRAY is returned when encountering ']' which signals ending of an Array value | |
| END_OBJECT | back to summary |
|---|---|
| public static final JsonToken END_OBJECT END_OBJECT is returned when encountering '}' which signals ending of an Object value | |
| FIELD_NAME | back to summary |
|---|---|
| public static final JsonToken FIELD_NAME FIELD_NAME is returned when a String token is encountered as a field name (same lexical value, different function) | |
| NOT_AVAILABLE | back to summary |
|---|---|
| public static final JsonToken NOT_AVAILABLE NOT_AVAILABLE can be returned if | |
| START_ARRAY | back to summary |
|---|---|
| public static final JsonToken START_ARRAY START_ARRAY is returned when encountering '[' which signals starting of an Array value | |
| START_OBJECT | back to summary |
|---|---|
| public static final JsonToken START_OBJECT START_OBJECT is returned when encountering '{' which signals starting of an Object value. | |
| VALUE_EMBEDDED_OBJECT | back to summary |
|---|---|
| public static final JsonToken VALUE_EMBEDDED_OBJECT Placeholder token returned when the input source has a concept
of embedded Object that are not accessible as usual structure
(of starting with Note this token is never returned by regular JSON readers, but
only by readers that expose other kinds of source (like
| |
| VALUE_FALSE | back to summary |
|---|---|
| public static final JsonToken VALUE_FALSE VALUE_FALSE is returned when encountering literal "false" in value context | |
| VALUE_NULL | back to summary |
|---|---|
| public static final JsonToken VALUE_NULL VALUE_NULL is returned when encountering literal "null" in value context | |
| VALUE_NUMBER_FLOAT | back to summary |
|---|---|
| public static final JsonToken VALUE_NUMBER_FLOAT VALUE_NUMBER_FLOAT is returned when a numeric token other than integer is encountered: that is, a number that does have floating point or exponent marker in it, in addition to one or more digits (or, for non-textual formats, has internal floating-point representation). | |
| VALUE_NUMBER_INT | back to summary |
|---|---|
| public static final JsonToken VALUE_NUMBER_INT VALUE_NUMBER_INT is returned when an integer numeric token is encountered in value context: that is, a number that does not have floating point or exponent marker in it (consists only of an optional sign, followed by one or more digits; or, for binary formats, is indicated as integral number by internal representation). | |
| VALUE_STRING | back to summary |
|---|---|
| public static final JsonToken VALUE_STRING VALUE_STRING is returned when a String token is encountered in value context (array element, field value, or root-level stand-alone value) | |
| VALUE_TRUE | back to summary |
|---|---|
| public static final JsonToken VALUE_TRUE VALUE_TRUE is returned when encountering literal "true" in value context | |
| JsonToken | back to summary |
|---|---|
private JsonToken(String token, int id)
| |
| asByteArray | back to summary |
|---|---|
| public final byte[] asByteArray() | |
| asCharArray | back to summary |
|---|---|
| public final char[] asCharArray() | |
| asString | back to summary |
|---|---|
| public final String asString() | |
| id | back to summary |
|---|---|
| public final int id() | |
| isBoolean | back to summary |
|---|---|
public final boolean isBoolean()
| |
| isNumeric | back to summary |
|---|---|
public final boolean isNumeric()
| |
| isScalarValue | back to summary |
|---|---|
| public final boolean isScalarValue() Method that can be used to check whether this token represents
a valid non-structured value. This means all
| |
| isStructEnd | back to summary |
|---|---|
| public final boolean isStructEnd() Accessor that is functionally equivalent to:
| |
| isStructStart | back to summary |
|---|---|
| public final boolean isStructStart() Accessor that is functionally equivalent to:
| |
| valueDescFor | back to summary |
|---|---|
| public static String valueDescFor(JsonToken t) Helper method for constructing description like "Object value" given
| |
| valueOf | back to summary |
|---|---|
| public static JsonToken valueOf(String name) | |
| values | back to summary |
|---|---|
| public static JsonToken[] values() | |