Enum SyntaxHighlightStyle.BuiltInStyle
- java.lang.Object
-
- java.lang.Enum<SyntaxHighlightStyle.BuiltInStyle>
-
- org.apache.flink.table.client.cli.parser.SyntaxHighlightStyle.BuiltInStyle
-
- All Implemented Interfaces:
Serializable,Comparable<SyntaxHighlightStyle.BuiltInStyle>
- Enclosing class:
- SyntaxHighlightStyle
public static enum SyntaxHighlightStyle.BuiltInStyle extends Enum<SyntaxHighlightStyle.BuiltInStyle>
Pre-defined highlight styles.The
CHESTER,DRACULA,SOLARIZEDandVS2010styles are inspired by Gillis's Colour schemes for Oracle SQL Developer (not the same but more or less similar).Similarly, the
OBSIDIANstyle is inspired by ozmoroz's OzBsidian colour scheme for Oracle SQL Developer.Similarly, the
GESHIstyle is inspired by GeSHi - Generic Syntax Highlighter for sql
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SyntaxHighlightStyle.BuiltInStylefromString(String styleName)SyntaxHighlightStylegetHighlightStyle()static SyntaxHighlightStyle.BuiltInStylevalueOf(String name)Returns the enum constant of this type with the specified name.static SyntaxHighlightStyle.BuiltInStyle[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final SyntaxHighlightStyle.BuiltInStyle DEFAULT
-
DARK
public static final SyntaxHighlightStyle.BuiltInStyle DARK
-
LIGHT
public static final SyntaxHighlightStyle.BuiltInStyle LIGHT
-
CHESTER
public static final SyntaxHighlightStyle.BuiltInStyle CHESTER
-
DRACULA
public static final SyntaxHighlightStyle.BuiltInStyle DRACULA
-
SOLARIZED
public static final SyntaxHighlightStyle.BuiltInStyle SOLARIZED
-
VS2010
public static final SyntaxHighlightStyle.BuiltInStyle VS2010
-
OBSIDIAN
public static final SyntaxHighlightStyle.BuiltInStyle OBSIDIAN
-
GESHI
public static final SyntaxHighlightStyle.BuiltInStyle GESHI
-
-
Method Detail
-
values
public static SyntaxHighlightStyle.BuiltInStyle[] 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 (SyntaxHighlightStyle.BuiltInStyle c : SyntaxHighlightStyle.BuiltInStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SyntaxHighlightStyle.BuiltInStyle 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 nameNullPointerException- if the argument is null
-
getHighlightStyle
public SyntaxHighlightStyle getHighlightStyle()
-
fromString
public static SyntaxHighlightStyle.BuiltInStyle fromString(String styleName)
-
-