public abstract class JsonToken
extends java.lang.Object
Abstract base class for JSON tokens (null, boolean, number, string, and punctuation characters).
JsonBooleanToken
, JsonNumberToken
, JsonStringToken
, JsonTokenStream
.
Modifier and Type | Field and Description |
---|---|
static int |
BEGIN_ARRAY
Constant type for '[' token.
|
static int |
BEGIN_OBJECT
Constant type for '{' token.
|
static int |
BOOLEAN_VALUE
Constant type for boolean token.
|
static int |
COLON_CHAR
Constant type for ':' token.
|
static int |
COMMA_CHAR
Constant type for ',' token.
|
static int |
END_ARRAY
Constant type for ']' token.
|
static int |
END_OBJECT
Constant type for '}' token.
|
static int |
END_STREAM
Constant type for stream end.
|
static int |
NULL_VALUE
Constant type for
null token. |
static int |
NUMBER_VALUE
Constant type for number token.
|
static int |
STRING_VALUE
Constant type for string token.
|
Constructor and Description |
---|
JsonToken() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getType()
Return type of token.
|
abstract java.lang.String |
toString() |
public static final int NULL_VALUE
Constant type for null
token.
public static final int BOOLEAN_VALUE
Constant type for boolean token.
public static final int NUMBER_VALUE
Constant type for number token.
public static final int STRING_VALUE
Constant type for string token.
public static final int COLON_CHAR
Constant type for ':' token.
public static final int COMMA_CHAR
Constant type for ',' token.
public static final int BEGIN_ARRAY
Constant type for '[' token.
public static final int END_ARRAY
Constant type for ']' token.
public static final int BEGIN_OBJECT
Constant type for '{' token.
public static final int END_OBJECT
Constant type for '}' token.
public static final int END_STREAM
Constant type for stream end.