public class SyntaxHighlightStyle extends Object
SqlClientSyntaxHighlighter
.Modifier and Type | Class and Description |
---|---|
static class |
SyntaxHighlightStyle.BuiltInStyle
Pre-defined highlight styles.
|
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
org.jline.utils.AttributedStyle |
getCommentStyle()
Returns the style for a SQL comments, such as /* This is a comment */
or -- End of line comment.
|
org.jline.utils.AttributedStyle |
getDefaultStyle()
Returns the style for text that does not match any other style.
|
org.jline.utils.AttributedStyle |
getHintStyle()
Returns the style for a SQL hint, such as /*+ This is a hint */.
|
org.jline.utils.AttributedStyle |
getKeywordStyle()
Returns the style for a SQL keyword such as
SELECT or ON . |
org.jline.utils.AttributedStyle |
getQuotedStyle()
Returns the style for a SQL character literal, such as
'Hello, world!' . |
org.jline.utils.AttributedStyle |
getSqlIdentifierStyle()
Returns the style for a SQL identifier, such as
`My_table` or `My table` . |
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)
public org.jline.utils.AttributedStyle getKeywordStyle()
SELECT
or ON
.public org.jline.utils.AttributedStyle getQuotedStyle()
'Hello, world!'
.public org.jline.utils.AttributedStyle getSqlIdentifierStyle()
`My_table`
or `My table`
.public org.jline.utils.AttributedStyle getCommentStyle()
public org.jline.utils.AttributedStyle getHintStyle()
public org.jline.utils.AttributedStyle getDefaultStyle()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.