Class SyntaxHighlightStyle
java.lang.Object
org.apache.flink.table.client.cli.parser.SyntaxHighlightStyle
Styles for
SqlClientSyntaxHighlighter.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPre-defined highlight styles. -
Constructor Summary
ConstructorsConstructorDescriptionSyntaxHighlightStyle(org.jline.utils.AttributedStyle commentStyle, org.jline.utils.AttributedStyle hintStyle, org.jline.utils.AttributedStyle defaultStyle, org.jline.utils.AttributedStyle keywordStyle, org.jline.utils.AttributedStyle singleQuotedStyle, org.jline.utils.AttributedStyle sqlIdentifierStyle) -
Method Summary
Modifier and TypeMethodDescriptionorg.jline.utils.AttributedStyleReturns the style for a SQL comments, such as /* This is a comment */ or -- End of line comment.org.jline.utils.AttributedStyleReturns the style for text that does not match any other style.org.jline.utils.AttributedStyleReturns the style for a SQL hint, such as /*+ This is a hint */.org.jline.utils.AttributedStyleReturns the style for a SQL keyword such asSELECTorON.org.jline.utils.AttributedStyleReturns the style for a SQL character literal, such as'Hello, world!'.org.jline.utils.AttributedStyleReturns the style for a SQL identifier, such as`My_table`or`My table`.
-
Constructor Details
-
SyntaxHighlightStyle
public SyntaxHighlightStyle(org.jline.utils.AttributedStyle commentStyle, org.jline.utils.AttributedStyle hintStyle, org.jline.utils.AttributedStyle defaultStyle, org.jline.utils.AttributedStyle keywordStyle, org.jline.utils.AttributedStyle singleQuotedStyle, org.jline.utils.AttributedStyle sqlIdentifierStyle)
-
-
Method Details
-
getKeywordStyle
public org.jline.utils.AttributedStyle getKeywordStyle()Returns the style for a SQL keyword such asSELECTorON.- Returns:
- Style for SQL keywords
-
getQuotedStyle
public org.jline.utils.AttributedStyle getQuotedStyle()Returns the style for a SQL character literal, such as'Hello, world!'.- Returns:
- Style for SQL character literals
-
getSqlIdentifierStyle
public org.jline.utils.AttributedStyle getSqlIdentifierStyle()Returns the style for a SQL identifier, such as`My_table`or`My table`.- Returns:
- Style for SQL identifiers
-
getCommentStyle
public org.jline.utils.AttributedStyle getCommentStyle()Returns the style for a SQL comments, such as /* This is a comment */ or -- End of line comment.- Returns:
- Style for SQL comments
-
getHintStyle
public org.jline.utils.AttributedStyle getHintStyle()Returns the style for a SQL hint, such as /*+ This is a hint */.- Returns:
- Style for SQL hints
-
getDefaultStyle
public org.jline.utils.AttributedStyle getDefaultStyle()Returns the style for text that does not match any other style.- Returns:
- Default style
-