Enum SqlClientParserState
- java.lang.Object
-
- java.lang.Enum<SqlClientParserState>
-
- org.apache.flink.table.client.cli.parser.SqlClientParserState
-
- All Implemented Interfaces:
Serializable,Comparable<SqlClientParserState>
public enum SqlClientParserState extends Enum<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 Constants Enum Constant Description DEFAULTHINTEDHIVE_SQL_QUOTED_IDENTIFIERMULTILINE_COMMENTEDONE_LINE_COMMENTEDQUOTEDSQL_QUOTED_IDENTIFIER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqlClientParserStatecomputeCurrentStateAtTheEndOfLine(String line, org.apache.flink.table.api.SqlDialect dialect)StringgetEnd()StringgetStart()java.util.function.BiConsumer<org.jline.utils.AttributedStringBuilder,SyntaxHighlightStyle>getStyleSetter()static SqlClientParserStatevalueOf(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.
-
-
-
Enum Constant Detail
-
QUOTED
public static final SqlClientParserState QUOTED
-
SQL_QUOTED_IDENTIFIER
public static final SqlClientParserState SQL_QUOTED_IDENTIFIER
-
HIVE_SQL_QUOTED_IDENTIFIER
public static final SqlClientParserState HIVE_SQL_QUOTED_IDENTIFIER
-
ONE_LINE_COMMENTED
public static final SqlClientParserState ONE_LINE_COMMENTED
-
HINTED
public static final SqlClientParserState HINTED
-
MULTILINE_COMMENTED
public static final SqlClientParserState MULTILINE_COMMENTED
-
DEFAULT
public static final SqlClientParserState DEFAULT
-
-
Method Detail
-
values
public static SqlClientParserState[] 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 (SqlClientParserState c : SqlClientParserState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlClientParserState 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
-
computeCurrentStateAtTheEndOfLine
public static SqlClientParserState computeCurrentStateAtTheEndOfLine(String line, org.apache.flink.table.api.SqlDialect dialect)
-
getStyleSetter
public java.util.function.BiConsumer<org.jline.utils.AttributedStringBuilder,SyntaxHighlightStyle> getStyleSetter()
-
getStart
public String getStart()
-
getEnd
public String getEnd()
-
-