Package org.apache.ignite.internal.sql
Enum SqlLexerTokenType
- java.lang.Object
-
- java.lang.Enum<SqlLexerTokenType>
-
- org.apache.ignite.internal.sql.SqlLexerTokenType
-
- All Implemented Interfaces:
Serializable,Comparable<SqlLexerTokenType>
public enum SqlLexerTokenType extends Enum<SqlLexerTokenType>
Lexer token type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMAComma.DEFAULTStandard word.DOTDot.EOFEnd of string.MINUSMinus sign.PARENTHESIS_LEFTParenthesis: left.PARENTHESIS_RIGHTParenthesis: right.QUOTEDQuoted phrase.SEMICOLONSemicolon.STRINGQuoted string constant.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CharacterasChar()StringasString()static SqlLexerTokenTypeforChar(char c)Get token type for character.static SqlLexerTokenTypevalueOf(String name)Returns the enum constant of this type with the specified name.static SqlLexerTokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final SqlLexerTokenType DEFAULT
Standard word.
-
QUOTED
public static final SqlLexerTokenType QUOTED
Quoted phrase.
-
STRING
public static final SqlLexerTokenType STRING
Quoted string constant.
-
MINUS
public static final SqlLexerTokenType MINUS
Minus sign.
-
DOT
public static final SqlLexerTokenType DOT
Dot.
-
COMMA
public static final SqlLexerTokenType COMMA
Comma.
-
PARENTHESIS_LEFT
public static final SqlLexerTokenType PARENTHESIS_LEFT
Parenthesis: left.
-
PARENTHESIS_RIGHT
public static final SqlLexerTokenType PARENTHESIS_RIGHT
Parenthesis: right.
-
SEMICOLON
public static final SqlLexerTokenType SEMICOLON
Semicolon.
-
EOF
public static final SqlLexerTokenType EOF
End of string.
-
-
Method Detail
-
values
public static SqlLexerTokenType[] 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 (SqlLexerTokenType c : SqlLexerTokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlLexerTokenType 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
-
forChar
public static SqlLexerTokenType forChar(char c)
Get token type for character.- Parameters:
c- Character.- Returns:
- Type.
-
asChar
public Character asChar()
- Returns:
- Character.
-
asString
public String asString()
- Returns:
- Character as string.
-
-