Enum Class TokenType

java.lang.Object
java.lang.Enum<TokenType>
org.cloudburstmc.mojava.parser.tokenizer.TokenType
All Implemented Interfaces:
Serializable, Comparable<TokenType>, Constable

public enum TokenType extends Enum<TokenType>
  • Enum Constant Details

    • EQUALS

      public static final TokenType EQUALS
    • NOT_EQUALS

      public static final TokenType NOT_EQUALS
    • COALESCE

      public static final TokenType COALESCE
    • AND

      public static final TokenType AND
    • OR

      public static final TokenType OR
    • GREATER_OR_EQUALS

      public static final TokenType GREATER_OR_EQUALS
    • SMALLER_OR_EQUALS

      public static final TokenType SMALLER_OR_EQUALS
    • ARROW

      public static final TokenType ARROW
    • GREATER

      public static final TokenType GREATER
    • SMALLER

      public static final TokenType SMALLER
    • BRACKET_LEFT

      public static final TokenType BRACKET_LEFT
    • BRACKET_RIGHT

      public static final TokenType BRACKET_RIGHT
    • ARRAY_LEFT

      public static final TokenType ARRAY_LEFT
    • ARRAY_RIGHT

      public static final TokenType ARRAY_RIGHT
    • CURLY_BRACKET_LEFT

      public static final TokenType CURLY_BRACKET_LEFT
    • CURLY_BRACKET_RIGHT

      public static final TokenType CURLY_BRACKET_RIGHT
    • COMMA

      public static final TokenType COMMA
    • ASSIGN

      public static final TokenType ASSIGN
    • PLUS

      public static final TokenType PLUS
    • MINUS

      public static final TokenType MINUS
    • ASTERISK

      public static final TokenType ASTERISK
    • SLASH

      public static final TokenType SLASH
    • QUESTION

      public static final TokenType QUESTION
    • COLON

      public static final TokenType COLON
    • SEMICOLON

      public static final TokenType SEMICOLON
    • BANG

      public static final TokenType BANG
    • RETURN

      public static final TokenType RETURN
    • CONTINUE

      public static final TokenType CONTINUE
    • BREAK

      public static final TokenType BREAK
    • FOR_EACH

      public static final TokenType FOR_EACH
    • LOOP

      public static final TokenType LOOP
    • THIS

      public static final TokenType THIS
    • TRUE

      public static final TokenType TRUE
    • FALSE

      public static final TokenType FALSE
    • STRING

      public static final TokenType STRING
    • NUMBER

      public static final TokenType NUMBER
    • NAME

      public static final TokenType NAME
    • EOF

      public static final TokenType EOF
  • Field Details

    • symbol

      public final String symbol
  • Method Details

    • values

      public static TokenType[] 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 TokenType 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
    • getSymbol

      public String getSymbol()
    • bySymbol

      public static TokenType bySymbol(String symbol)