Class SyntaxHighlightStyle
- java.lang.Object
-
- org.apache.flink.table.client.cli.parser.SyntaxHighlightStyle
-
public class SyntaxHighlightStyle extends Object
Styles forSqlClientSyntaxHighlighter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSyntaxHighlightStyle.BuiltInStylePre-defined highlight styles.
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jline.utils.AttributedStylegetCommentStyle()Returns the style for a SQL comments, such as /* This is a comment */ or -- End of line comment.org.jline.utils.AttributedStylegetDefaultStyle()Returns the style for text that does not match any other style.org.jline.utils.AttributedStylegetHintStyle()Returns the style for a SQL hint, such as /*+ This is a hint */.org.jline.utils.AttributedStylegetKeywordStyle()Returns the style for a SQL keyword such asSELECTorON.org.jline.utils.AttributedStylegetQuotedStyle()Returns the style for a SQL character literal, such as'Hello, world!'.org.jline.utils.AttributedStylegetSqlIdentifierStyle()Returns the style for a SQL identifier, such as`My_table`or`My table`.
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-