Package com.github.tnakamot.json.value
Class JSONValuePrimitive
- java.lang.Object
-
- com.github.tnakamot.json.value.JSONValue
-
- com.github.tnakamot.json.value.JSONValuePrimitive
-
- Direct Known Subclasses:
JSONValueBoolean
,JSONValueNull
,JSONValueNumber
,JSONValueString
public abstract class JSONValuePrimitive extends JSONValue
Represents one JSON primitive value.Instances of this class are immutable.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable JSONToken
token()
The source token of this JSON value.-
Methods inherited from class com.github.tnakamot.json.value.JSONValue
toTokenBytes, toTokenBytes, toTokenString, toTokenString, type
-
-
-
-
Method Detail
-
token
@Nullable public @Nullable JSONToken token()
The source token of this JSON value.- Returns:
- the source token of this JSON value. Null if this JSON value is not originated from an existing JSON text.
-
-