| Modifier and Type | Field and Description |
|---|---|
| public static final Formatter | |
| private final String | |
| private static final Set | |
| private final String | |
| private final String | |
| private final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | HighlightingFormatter(String
the ANSI escape code to use for highlighting SQL keywords keywordCode, String the ANSI escape code to use for highlighting SQL strings stringCode, String quotedCode)
|
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public String | format(String
The original SQL string sql)Implements org. |
| INSTANCE | back to summary |
|---|---|
| public static final Formatter INSTANCE | |
| keywordEscape | back to summary |
|---|---|
| private final String keywordEscape | |
| KEYWORDS | back to summary |
|---|---|
| private static final Set<String> KEYWORDS | |
| normalEscape | back to summary |
|---|---|
| private final String normalEscape | |
| quotedEscape | back to summary |
|---|---|
| private final String quotedEscape | |
| stringEscape | back to summary |
|---|---|
| private final String stringEscape | |
| SYMBOLS_AND_WS | back to summary |
|---|---|
| private static final String SYMBOLS_AND_WS | |
| HighlightingFormatter | back to summary |
|---|---|
| public HighlightingFormatter(String keywordCode, String stringCode, String quotedCode) | |
| escape | back to summary |
|---|---|
| private static String escape(String code) | |
| format | back to summary |
|---|---|
| public String format(String sql) Implements org. Doc from org. Format the source SQL string. | |