java.lang.Object
org.json.simple.Yytoken

class Yytokenextends Object
Represents structural entities in JSON.
  • Field Details

    • type

      private final Yytoken.Types type
      Kind of token: an object or array delimiter, a separator, or a value
    • value

      private final Object value
      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

      public String toString()
      Overrides:
      toString in class Object