Enum Class TokenKind

java.lang.Object
java.lang.Enum<TokenKind>
org.apache.olingo.odata2.core.uri.expression.TokenKind
All Implemented Interfaces:
Serializable, Comparable<TokenKind>, Constable

public enum TokenKind extends Enum<TokenKind>
The token kind is used to categorize a single Token. The Expression parser (FilterParserImpl) uses this information to build the expression tree.
  • Enum Constant Details

    • WHITESPACE

      public static final TokenKind WHITESPACE
      Indicates that the token is a whitespace character
    • OPENPAREN

      public static final TokenKind OPENPAREN
      Indicates that the token is a '(' character
    • CLOSEPAREN

      public static final TokenKind CLOSEPAREN
      Indicates that the token is a ')' character
    • COMMA

      public static final TokenKind COMMA
      Indicates that the token is a ',' character
    • SIMPLE_TYPE

      public static final TokenKind SIMPLE_TYPE
      Indicates that the token is a typed literal. That may be a Edm.String like 'TEST' Edm.Double like '1.1D' or any other Edm.Simple Type
    • SYMBOL

      public static final TokenKind SYMBOL
      Indicates that the token is a single symbol. That may be a '-', '=', '/', '?', '.' or a '*' character
    • LITERAL

      public static final TokenKind LITERAL
      Indicates that the token is a set of alphanumeric characters starting with a letter
    • TYPED_LITERAL_TODO_CHECK

      public static final TokenKind TYPED_LITERAL_TODO_CHECK
    • UNKNOWN

      public static final TokenKind UNKNOWN
  • Method Details

    • values

      public static TokenKind[] 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 TokenKind 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