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/).

Author:
Fang Yidong, Lakshmi Krishnamurthy
  • Field Summary

    Fields
    Modifier and Type Field Description
    int type
    Type
    static int TYPE_COLON
    Colon Token
    static int TYPE_COMMA
    Comma Token
    static int TYPE_EOF
    EOF Token
    static int TYPE_LEFT_BRACE
    Left Brace Token
    static int TYPE_LEFT_SQUARE
    Left Square Token
    static int TYPE_RIGHT_BRACE
    Right Brace Token
    static int TYPE_RIGHT_SQUARE
    Right Square Token
    static int TYPE_VALUE
    Value Token
    java.lang.Object value
    Value
  • Constructor Summary

    Constructors
    Constructor Description
    Yytoken​(int type, java.lang.Object value)
    Yytoken Constructor
  • Method Summary

    Modifier and Type Method Description
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • TYPE_VALUE

      public static final int TYPE_VALUE
      Value Token
      See Also:
      Constant Field Values
    • TYPE_LEFT_BRACE

      public static final int TYPE_LEFT_BRACE
      Left Brace Token
      See Also:
      Constant Field Values
    • TYPE_RIGHT_BRACE

      public static final int TYPE_RIGHT_BRACE
      Right Brace Token
      See Also:
      Constant Field Values
    • TYPE_LEFT_SQUARE

      public static final int TYPE_LEFT_SQUARE
      Left Square Token
      See Also:
      Constant Field Values
    • TYPE_RIGHT_SQUARE

      public static final int TYPE_RIGHT_SQUARE
      Right Square Token
      See Also:
      Constant Field Values
    • TYPE_COMMA

      public static final int TYPE_COMMA
      Comma Token
      See Also:
      Constant Field Values
    • TYPE_COLON

      public static final int TYPE_COLON
      Colon Token
      See Also:
      Constant Field Values
    • TYPE_EOF

      public static final int TYPE_EOF
      EOF Token
      See Also:
      Constant Field Values
    • type

      public int type
      Type
    • value

      public java.lang.Object value
      Value
  • Constructor Details

    • Yytoken

      public Yytoken​(int type, java.lang.Object value)
      Yytoken Constructor
      Parameters:
      type - Token Type
      value - Token Value
  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object