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
FieldsModifier and TypeFieldDescriptionstatic final intId used to representJsonToken.VALUE_EMBEDDED_OBJECTstatic final intId used to representJsonToken.END_ARRAYstatic final intId used to representJsonToken.END_OBJECTstatic final intId used to representJsonToken.VALUE_FALSEstatic final intId used to representJsonToken.FIELD_NAMEstatic final intId used to represent the case where noJsonTokenis available: either becauseJsonParserhas not been advanced to first token, or because no more tokens will be available (end-of-input or explicit closing of parser}.static final intId 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 intId used to representJsonToken.VALUE_NULLstatic final intId used to representJsonToken.VALUE_NUMBER_FLOATstatic final intId used to representJsonToken.VALUE_NUMBER_INTstatic final intId used to representJsonToken.START_ARRAYstatic final intId used to representJsonToken.START_OBJECTstatic final intId used to representJsonToken.VALUE_STRINGstatic final intId 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 noJsonTokenis available: either becauseJsonParserhas 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
-
ID_END_OBJECT
-
ID_START_ARRAY
-
ID_END_ARRAY
-
ID_FIELD_NAME
-
ID_STRING
-
ID_NUMBER_INT
-
ID_NUMBER_FLOAT
-
ID_TRUE
-
ID_FALSE
-
ID_NULL
-
ID_EMBEDDED_OBJECT
-