Enum TokenType
- java.lang.Object
-
- java.lang.Enum<TokenType>
-
- migratedb.v1.core.internal.parser.TokenType
-
- All Implemented Interfaces:
Serializable,Comparable<TokenType>
public enum TokenType extends Enum<TokenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLANK_LINESCOMMENTA comment in front of or within a statement.COPY_DATADELIMITEREOFIDENTIFIERAn identifier, referring to a schema object like a table or column.KEYWORDMULTI_LINE_COMMENT_DIRECTIVEAn actual statement disguised as a multi-line comment.NEW_DELIMITERThe new delimiter that will be used from now on.NUMERICPARENS_CLOSEPARENS_OPENSTRINGSYMBOLA symbol such as !
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TokenTypevalueOf(String name)Returns the enum constant of this type with the specified name.static TokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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
-
EOF
public static final TokenType EOF
-
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 nameNullPointerException- if the argument is null
-
-