Package org.drip.service.jsonparser
Class Yytoken
java.lang.Object
org.drip.service.jsonparser.Yytoken
public class Yytoken
extends java.lang.Object
Yytoken is an Adaptation of the Yytoken Class from the RFC4627 compliant JSON Simple
(https://code.google.com/p/json-simple/). It provides the following Functionality:
- Value Token
- Left Brace Token
- Right Brace Token
- Left Square Token
- Right Square Token
- Comma Token
- Colon Token
- EOF Token
- Type
- Value
- Yytoken Constructor
- String Version of the State
| Module | Computational Core Module |
| Library | Computation Support |
| Project | Environment, Product/Definition Containers, and Scenario/State Manipulation APIs |
| Package | RFC4627 Compliant JSON Message Parser |
- Author:
- Fang Yidong, Lakshmi Krishnamurthy
-
Field Summary
Fields Modifier and Type Field Description inttypeTypestatic intTYPE_COLONColon Tokenstatic intTYPE_COMMAComma Tokenstatic intTYPE_EOFEOF Tokenstatic intTYPE_LEFT_BRACELeft Brace Tokenstatic intTYPE_LEFT_SQUARELeft Square Tokenstatic intTYPE_RIGHT_BRACERight Brace Tokenstatic intTYPE_RIGHT_SQUARERight Square Tokenstatic intTYPE_VALUEValue Tokenjava.lang.ObjectvalueValue -
Constructor Summary
Constructors Constructor Description Yytoken(int type, java.lang.Object value)Yytoken Constructor -
Method Summary
Modifier and Type Method Description java.lang.StringtoString()String Version of the StateMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
TYPE_VALUE
public static final int TYPE_VALUEValue Token- See Also:
- Constant Field Values
-
TYPE_LEFT_BRACE
public static final int TYPE_LEFT_BRACELeft Brace Token- See Also:
- Constant Field Values
-
TYPE_RIGHT_BRACE
public static final int TYPE_RIGHT_BRACERight Brace Token- See Also:
- Constant Field Values
-
TYPE_LEFT_SQUARE
public static final int TYPE_LEFT_SQUARELeft Square Token- See Also:
- Constant Field Values
-
TYPE_RIGHT_SQUARE
public static final int TYPE_RIGHT_SQUARERight Square Token- See Also:
- Constant Field Values
-
TYPE_COMMA
public static final int TYPE_COMMAComma Token- See Also:
- Constant Field Values
-
TYPE_COLON
public static final int TYPE_COLONColon Token- See Also:
- Constant Field Values
-
TYPE_EOF
public static final int TYPE_EOFEOF Token- See Also:
- Constant Field Values
-
type
public int typeType -
value
public java.lang.Object valueValue
-
-
Constructor Details
-
Yytoken
public Yytoken(int type, java.lang.Object value)Yytoken Constructor- Parameters:
type- Token Typevalue- Token Value
-
-
Method Details
-
toString
public java.lang.String toString()String Version of the State- Overrides:
toStringin classjava.lang.Object- Returns:
- String Version of the State
-