java.lang.Object
org.json.simple.Yytoken
Represents structural entities in JSON.
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumRepresents the different kinds of tokens.Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Yytoken.TypesKind of token: an object or array delimiter, a separator, or a valueprivate final ObjectThe value carried by a value token.Constructor Summary
ConstructorsMethod Summary
Public Methods
Field Details
type
Kind of token: an object or array delimiter, a separator, or a valuevalue
The value carried by a value token.
Constructor Details
Yytoken
Yytoken(Yytoken.Types type, Object value) Types.DATUM.- Parameters:
type- represents the kind of token the instantiated token will be.value- represents the value the token is associated with, will be ignored unless type is equal to- See Also:
Method Details
getType
Yytoken.Types getType()The kind of token this is, as parsed from the JSON stream.- Returns:
- which of the Types the token is.
- See Also:
getValue
Object getValue()The payload this token carries; only DATUM tokens have a meaningful value.- Returns:
- what the token is.
- See Also:
toString