Package com.fasterxml.jackson.core
Interface JsonTokenId
public interface JsonTokenId
Interface defined to contain ids accessible with
JsonToken.id()
.
Needed because it is impossible to define these constants in
JsonToken
itself, as static constants (oddity of how Enums
are implemented by JVM).- Since:
- 2.3
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Id used to representJsonToken.VALUE_EMBEDDED_OBJECT
static final int
Id used to representJsonToken.END_ARRAY
static final int
Id used to representJsonToken.END_OBJECT
static final int
Id used to representJsonToken.VALUE_FALSE
static final int
Id used to representJsonToken.FIELD_NAME
static final int
Id used to represent the case where noJsonToken
is available: either becauseJsonParser
has not been advanced to first token, or because no more tokens will be available (end-of-input or explicit closing of parser}.static final int
Id used to representJsonToken.NOT_AVAILABLE
, used in cases where a token may become available when more input is available: this occurs in non-blocking use cases.static final int
Id used to representJsonToken.VALUE_NULL
static final int
Id used to representJsonToken.VALUE_NUMBER_FLOAT
static final int
Id used to representJsonToken.VALUE_NUMBER_INT
static final int
Id used to representJsonToken.START_ARRAY
static final int
Id used to representJsonToken.START_OBJECT
static final int
Id used to representJsonToken.VALUE_STRING
static final int
Id used to representJsonToken.VALUE_TRUE
-
Field Details
-
ID_NOT_AVAILABLE
static final int ID_NOT_AVAILABLEId used to representJsonToken.NOT_AVAILABLE
, used in cases where a token may become available when more input is available: this occurs in non-blocking use cases.- See Also:
-
ID_NO_TOKEN
static final int ID_NO_TOKENId used to represent the case where noJsonToken
is available: either becauseJsonParser
has not been advanced to first token, or because no more tokens will be available (end-of-input or explicit closing of parser}.- See Also:
-
ID_START_OBJECT
static final int ID_START_OBJECTId used to representJsonToken.START_OBJECT
- See Also:
-
ID_END_OBJECT
static final int ID_END_OBJECTId used to representJsonToken.END_OBJECT
- See Also:
-
ID_START_ARRAY
static final int ID_START_ARRAYId used to representJsonToken.START_ARRAY
- See Also:
-
ID_END_ARRAY
static final int ID_END_ARRAYId used to representJsonToken.END_ARRAY
- See Also:
-
ID_FIELD_NAME
static final int ID_FIELD_NAMEId used to representJsonToken.FIELD_NAME
- See Also:
-
ID_STRING
static final int ID_STRINGId used to representJsonToken.VALUE_STRING
- See Also:
-
ID_NUMBER_INT
static final int ID_NUMBER_INTId used to representJsonToken.VALUE_NUMBER_INT
- See Also:
-
ID_NUMBER_FLOAT
static final int ID_NUMBER_FLOATId used to representJsonToken.VALUE_NUMBER_FLOAT
- See Also:
-
ID_TRUE
static final int ID_TRUEId used to representJsonToken.VALUE_TRUE
- See Also:
-
ID_FALSE
static final int ID_FALSEId used to representJsonToken.VALUE_FALSE
- See Also:
-
ID_NULL
static final int ID_NULLId used to representJsonToken.VALUE_NULL
- See Also:
-
ID_EMBEDDED_OBJECT
static final int ID_EMBEDDED_OBJECTId used to representJsonToken.VALUE_EMBEDDED_OBJECT
- See Also:
-