Package org.json.simple
Class Yytoken
java.lang.Object
org.json.simple.Yytoken
Represents structural entities in JSON.
- Since:
- 2.0.0
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static enum
Represents the different kinds of tokens. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
Yytoken
Yytoken(Yytoken.Types type, Object value) - 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 Types.DATUM.- See Also:
-
-
Method Details
-
getType
Yytoken.Types getType()- Returns:
- which of the Types the token is.
- See Also:
-
getValue
Object getValue()- Returns:
- what the token is.
- See Also:
-
toString
-