Enum Class Token

java.lang.Object
java.lang.Enum<Token>
edu.cmu.tetrad.calculator.parser.Token
All Implemented Interfaces:
Serializable, Comparable<Token>, Constable

public enum Token extends Enum<Token>
Allowable tokens.
Version:
$Id: $Id
Author:
Tyler Gibson
  • Enum Constant Details

    • WHITESPACE

      public static final Token WHITESPACE
      Whitespace.
    • LPAREN

      public static final Token LPAREN
      Left parenthesis.
    • RPAREN

      public static final Token RPAREN
      Right parenthesis.
    • COMMA

      public static final Token COMMA
      Comma.
    • NUMBER

      public static final Token NUMBER
      Number.
    • OPERATOR

      public static final Token OPERATOR
      Operator.
    • PARAMETER

      public static final Token PARAMETER
      Parameter.
    • EQUATION

      public static final Token EQUATION
      Equation.
    • STRING

      public static final Token STRING
      String.
    • EOF

      public static final Token EOF
      End of file.
    • UNKNOWN

      public static final Token UNKNOWN
      Unknown.
  • Method Details

    • values

      public static Token[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Token valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null