Package com.alibaba.druid.sql.parser
Enum DialectFeature.LexerFeature
- java.lang.Object
-
- java.lang.Enum<DialectFeature.LexerFeature>
-
- com.alibaba.druid.sql.parser.DialectFeature.LexerFeature
-
- All Implemented Interfaces:
DialectFeature.Feature,Serializable,Comparable<DialectFeature.LexerFeature>
- Enclosing class:
- DialectFeature
public static enum DialectFeature.LexerFeature extends Enum<DialectFeature.LexerFeature> implements DialectFeature.Feature
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longconfig(long features, boolean state)longgetMask()booleanisEnabled(long features)static DialectFeature.LexerFeaturevalueOf(String name)Returns the enum constant of this type with the specified name.static DialectFeature.LexerFeature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ScanSQLTypeBlockComment
public static final DialectFeature.LexerFeature ScanSQLTypeBlockComment
-
ScanSQLTypeWithSemi
public static final DialectFeature.LexerFeature ScanSQLTypeWithSemi
-
ScanSQLTypeWithFrom
public static final DialectFeature.LexerFeature ScanSQLTypeWithFrom
-
ScanSQLTypeWithFunction
public static final DialectFeature.LexerFeature ScanSQLTypeWithFunction
-
ScanSQLTypeWithBegin
public static final DialectFeature.LexerFeature ScanSQLTypeWithBegin
-
ScanSQLTypeWithAt
public static final DialectFeature.LexerFeature ScanSQLTypeWithAt
-
NextTokenColon
public static final DialectFeature.LexerFeature NextTokenColon
-
NextTokenPrefixN
public static final DialectFeature.LexerFeature NextTokenPrefixN
-
ScanString2PutDoubleBackslash
public static final DialectFeature.LexerFeature ScanString2PutDoubleBackslash
-
ScanAliasU
public static final DialectFeature.LexerFeature ScanAliasU
-
ScanNumberPrefixB
public static final DialectFeature.LexerFeature ScanNumberPrefixB
-
ScanNumberCommonProcess
public static final DialectFeature.LexerFeature ScanNumberCommonProcess
-
ScanVariableAt
public static final DialectFeature.LexerFeature ScanVariableAt
-
ScanVariableGreaterThan
public static final DialectFeature.LexerFeature ScanVariableGreaterThan
-
ScanVariableSkipIdentifiers
public static final DialectFeature.LexerFeature ScanVariableSkipIdentifiers
-
ScanVariableMoveToSemi
public static final DialectFeature.LexerFeature ScanVariableMoveToSemi
-
ScanHiveCommentDoubleSpace
public static final DialectFeature.LexerFeature ScanHiveCommentDoubleSpace
-
ScanSubAsIdentifier
public static final DialectFeature.LexerFeature ScanSubAsIdentifier
-
-
Method Detail
-
values
public static DialectFeature.LexerFeature[] 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 (DialectFeature.LexerFeature c : DialectFeature.LexerFeature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DialectFeature.LexerFeature 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
-
getMask
public long getMask()
- Specified by:
getMaskin interfaceDialectFeature.Feature
-
isEnabled
public boolean isEnabled(long features)
- Specified by:
isEnabledin interfaceDialectFeature.Feature
-
config
public long config(long features, boolean state)- Specified by:
configin interfaceDialectFeature.Feature
-
-