Enum Class TokenType

java.lang.Object
java.lang.Enum<TokenType>
io.micronaut.expressions.parser.token.TokenType
All Implemented Interfaces:
Serializable, Comparable<TokenType>, Constable

@Internal public enum TokenType extends Enum<TokenType>
List of supported token types.
Since:
4.0.0
Author:
Sergey Gavrilov
  • Enum Constant Details

    • WHITESPACE

      public static final TokenType WHITESPACE
    • IDENTIFIER

      public static final TokenType IDENTIFIER
    • BEAN_CONTEXT

      public static final TokenType BEAN_CONTEXT
    • ENVIRONMENT

      public static final TokenType ENVIRONMENT
    • THIS

      public static final TokenType THIS
    • TYPE_IDENTIFIER

      public static final TokenType TYPE_IDENTIFIER
    • EXPRESSION_CONTEXT_REF

      public static final TokenType EXPRESSION_CONTEXT_REF
    • DOT

      public static final TokenType DOT
    • SAFE_NAV

      public static final TokenType SAFE_NAV
    • ELVIS

      public static final TokenType ELVIS
    • COMMA

      public static final TokenType COMMA
    • COLON

      public static final TokenType COLON
    • L_PAREN

      public static final TokenType L_PAREN
    • R_PAREN

      public static final TokenType R_PAREN
    • L_CURLY

      public static final TokenType L_CURLY
    • R_CURLY

      public static final TokenType R_CURLY
    • L_SQUARE

      public static final TokenType L_SQUARE
    • R_SQUARE

      public static final TokenType R_SQUARE
    • QMARK

      public static final TokenType QMARK
    • NOT

      public static final TokenType NOT
    • POW

      public static final TokenType POW
    • PLUS

      public static final TokenType PLUS
    • MINUS

      public static final TokenType MINUS
    • MUL

      public static final TokenType MUL
    • DIV

      public static final TokenType DIV
    • MOD

      public static final TokenType MOD
    • INCREMENT

      public static final TokenType INCREMENT
    • DECREMENT

      public static final TokenType DECREMENT
    • DOUBLE

      public static final TokenType DOUBLE
    • FLOAT

      public static final TokenType FLOAT
    • INT

      public static final TokenType INT
    • LONG

      public static final TokenType LONG
    • STRING

      public static final TokenType STRING
    • BOOL

      public static final TokenType BOOL
    • NULL

      public static final TokenType NULL
    • OR

      public static final TokenType OR
    • AND

      public static final TokenType AND
    • EQ

      public static final TokenType EQ
    • NE

      public static final TokenType NE
    • GT

      public static final TokenType GT
    • GTE

      public static final TokenType GTE
    • LT

      public static final TokenType LT
    • LTE

      public static final TokenType LTE
    • INSTANCEOF

      public static final TokenType INSTANCEOF
    • MATCHES

      public static final TokenType MATCHES
    • EMPTY

      public static final TokenType EMPTY
  • 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
    • isOneOf

      public boolean isOneOf(TokenType... others)