Class JsonToken
java.lang.Object
de.monticore.symboltable.serialization.JsonToken
This class holds kind and, if present for this kind, also the value of a json token.
For tokens without a value, this class has constants that can be used to avoid creating unnecassary objects
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonTokenstatic final JsonTokenstatic final JsonTokenstatic final JsonTokenstatic final JsonTokenstatic final JsonTokenstatic final JsonTokenstatic final JsonTokenprotected JsonTokenKindstatic final JsonTokenprotected Stringstatic final JsonToken -
Constructor Summary
ConstructorsConstructorDescriptionJsonToken(JsonTokenKind kind) returns a token with the passed kindJsonToken(JsonTokenKind kind, String value) create a token with the passed kind and the passed value -
Method Summary
-
Field Details
-
BEGIN_OBJECT
-
END_OBJECT
-
BEGIN_ARRAY
-
END_ARRAY
-
COLON
-
COMMA
-
NULL
-
WHITESPACE
-
BOOLEAN_TRUE
-
BOOLEAN_FALSE
-
kind
-
value
-
-
Constructor Details
-
JsonToken
create a token with the passed kind and the passed value- Parameters:
kind-value-
-
JsonToken
returns a token with the passed kind- Parameters:
kind-
-
-
Method Details