Package com.github.tnakamot.json.token
Class JSONTokenNull
- java.lang.Object
-
- com.github.tnakamot.json.token.JSONToken
-
- com.github.tnakamot.json.token.JSONTokenNull
-
public class JSONTokenNull extends JSONToken
Represents one "null" token in JSON text.Based on RFC 8259, the token text returned by
JSONToken.text()
is always "null".Instances of this class are immutable.
-
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_NULL
-
Fields inherited from class com.github.tnakamot.json.token.JSONToken
JSON_BEGIN_ARRAY, JSON_BEGIN_OBJECT, JSON_END_ARRAY, JSON_END_OBJECT, JSON_NAME_SEPARATOR, JSON_VALUE_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description JSONTokenNull(StringLocation begin, StringLocation end, JSONText source)
Creates one "null" type token of a JSON text.
-
-
-
Field Detail
-
JSON_NULL
public static final String JSON_NULL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JSONTokenNull
public JSONTokenNull(StringLocation begin, StringLocation end, JSONText source)
Creates one "null" type token of a JSON text.- Parameters:
begin
- beginning location of this token within the source JSON textend
- end location of this token within the source JSON textsource
- source JSON text where this token was extracted from
-
-