Enum Class Token

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

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

    • WHITESPACE

      public static final Token WHITESPACE
    • LPAREN

      public static final Token LPAREN
    • RPAREN

      public static final Token RPAREN
    • COMMA

      public static final Token COMMA
    • NUMBER

      public static final Token NUMBER
    • OPERATOR

      public static final Token OPERATOR
    • PARAMETER

      public static final Token PARAMETER
    • EQUATION

      public static final Token EQUATION
    • STRING

      public static final Token STRING
    • EOF

      public static final Token EOF
    • UNKNOWN

      public static final Token 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