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 Details

  • Method Details

    • values

      public static SqlClientParserState[] 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

      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 name
      NullPointerException - if the argument is null
    • computeCurrentStateAtTheEndOfLine

      public static SqlClientParserState computeCurrentStateAtTheEndOfLine(String line, org.apache.flink.table.api.SqlDialect dialect)
    • getStyleSetter

      public BiConsumer<org.jline.utils.AttributedStringBuilder,SyntaxHighlightStyle> getStyleSetter()
    • getStart

      public String getStart()
    • getEnd

      public String getEnd()