public enum SqlClientParserState extends Enum<SqlClientParserState>
MultiLine Comment Single Line Comment | | (/*,*/) | | (--, \n) *------------Default-----------* | | | | *------------* *------------* (/*+,*/) | | | | (', ') | | | | Hint | | String | | | | *------------* *------------* (", ") | | (`, `) | | Hive Identifier Flink Default Identifier
Enum Constant and Description |
---|
DEFAULT |
HINTED |
HIVE_SQL_QUOTED_IDENTIFIER |
MULTILINE_COMMENTED |
ONE_LINE_COMMENTED |
QUOTED |
SQL_QUOTED_IDENTIFIER |
Modifier and Type | Method and Description |
---|---|
static SqlClientParserState |
computeCurrentStateAtTheEndOfLine(String line,
SqlDialect dialect) |
String |
getEnd() |
String |
getStart() |
java.util.function.BiConsumer<org.jline.utils.AttributedStringBuilder,SyntaxHighlightStyle> |
getStyleSetter() |
static SqlClientParserState |
valueOf(String name)
Returns 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.
|
public static final SqlClientParserState QUOTED
public static final SqlClientParserState SQL_QUOTED_IDENTIFIER
public static final SqlClientParserState HIVE_SQL_QUOTED_IDENTIFIER
public static final SqlClientParserState ONE_LINE_COMMENTED
public static final SqlClientParserState HINTED
public static final SqlClientParserState MULTILINE_COMMENTED
public static final SqlClientParserState DEFAULT
public static SqlClientParserState[] values()
for (SqlClientParserState c : SqlClientParserState.values()) System.out.println(c);
public static SqlClientParserState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static SqlClientParserState computeCurrentStateAtTheEndOfLine(String line, SqlDialect dialect)
public java.util.function.BiConsumer<org.jline.utils.AttributedStringBuilder,SyntaxHighlightStyle> getStyleSetter()
public String getStart()
public String getEnd()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.