Enum SqlClientParserState
- All Implemented Interfaces:
Serializable,Comparable<SqlClientParserState>
State of parser used while preparing highlighted output, multiline parsing. This class represents
a state machine.
MultiLine Comment Single Line Comment
| |
(/*,*/) | | (--, \n)
*------------Default-----------*
| |
| |
*------------* *------------*
(/*+,*/) | | | | (', ')
| | | |
Hint | | String
| |
| |
*------------* *------------*
(", ") | | (`, `)
| |
Hive Identifier Flink Default Identifier
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic SqlClientParserStatecomputeCurrentStateAtTheEndOfLine(String line, org.apache.flink.table.api.SqlDialect dialect) getEnd()getStart()BiConsumer<org.jline.utils.AttributedStringBuilder,SyntaxHighlightStyle> static SqlClientParserStateReturns the enum constant of this type with the specified name.static SqlClientParserState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
QUOTED
-
SQL_QUOTED_IDENTIFIER
-
HIVE_SQL_QUOTED_IDENTIFIER
-
ONE_LINE_COMMENTED
-
HINTED
-
MULTILINE_COMMENTED
-
DEFAULT
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
computeCurrentStateAtTheEndOfLine
public static SqlClientParserState computeCurrentStateAtTheEndOfLine(String line, org.apache.flink.table.api.SqlDialect dialect) -
getStyleSetter
-
getStart
-
getEnd
-