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