Enum Class Token.Type

java.lang.Object
java.lang.Enum<Token.Type>
net.orbyfied.j8.util.math.expr.Token.Type
All Implemented Interfaces:
Serializable, Comparable<Token.Type>, Constable
Enclosing class:
Token<T>

public static enum Token.Type extends Enum<Token.Type>
  • Enum Constant Details

    • NUMBER_LITERAL

      public static final Token.Type NUMBER_LITERAL
    • OPERATOR

      public static final Token.Type OPERATOR
    • LEFT_PARENTHESIS

      public static final Token.Type LEFT_PARENTHESIS
    • RIGHT_PARENTHESIS

      public static final Token.Type RIGHT_PARENTHESIS
    • COMMA

      public static final Token.Type COMMA
    • DOT

      public static final Token.Type DOT
    • ASSIGN

      public static final Token.Type ASSIGN
    • ARROW

      public static final Token.Type ARROW
    • COLON

      public static final Token.Type COLON
    • IDENTIFIER

      public static final Token.Type IDENTIFIER
    • KW_FUNC

      public static final Token.Type KW_FUNC
  • Method Details

    • values

      public static Token.Type[] 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.Type 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
    • getName

      public String getName()
    • getValueType

      public Class<?> getValueType()
    • requiresValue

      public boolean requiresValue()