Enum Class TokenType

java.lang.Object
java.lang.Enum<TokenType>
migratedb.v1.core.internal.parser.TokenType
All Implemented Interfaces:
Serializable, Comparable<TokenType>, java.lang.constant.Constable

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

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

      public static final TokenType EOF
    • COPY_DATA

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