Enum 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
     
    • 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 name
        NullPointerException - 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()