Enum TokenType

    • Enum Constant Detail

      • KEYWORD

        public static final TokenType KEYWORD
      • IDENTIFIER

        public static final TokenType IDENTIFIER
        An identifier, referring to a schema object like a table or column.
      • NUMERIC

        public static final TokenType NUMERIC
      • STRING

        public static final TokenType STRING
      • COMMENT

        public static final TokenType COMMENT
        A comment in front of or within a statement. Can be single line (--) or multi-line (/* */).
      • MULTI_LINE_COMMENT_DIRECTIVE

        public static final TokenType MULTI_LINE_COMMENT_DIRECTIVE
        An actual statement disguised as a multi-line comment.
      • PARENS_OPEN

        public static final TokenType PARENS_OPEN
      • PARENS_CLOSE

        public static final TokenType PARENS_CLOSE
      • DELIMITER

        public static final TokenType DELIMITER
      • NEW_DELIMITER

        public static final TokenType NEW_DELIMITER
        The new delimiter that will be used from now on.
      • SYMBOL

        public static final TokenType SYMBOL
        A symbol such as ! or #.
      • BLANK_LINES

        public static final TokenType BLANK_LINES
      • COPY_DATA

        public static final TokenType COPY_DATA
    • Method Detail

      • values

        public static TokenType[] 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 (TokenType c : TokenType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TokenType 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