Enum TokenKind

    • Enum Constant Detail

      • 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 Detail

      • values

        public static TokenKind[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TokenKind c : TokenKind.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TokenKind valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null