Package com.databricks.jdbc.common.util
Enum SqlCommentParser.State
- java.lang.Object
-
- java.lang.Enum<SqlCommentParser.State>
-
- com.databricks.jdbc.common.util.SqlCommentParser.State
-
- All Implemented Interfaces:
Serializable,Comparable<SqlCommentParser.State>
- Enclosing class:
- SqlCommentParser
public static enum SqlCommentParser.State extends Enum<SqlCommentParser.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IN_BACKTICKIN_BLOCK_COMMENTIN_DOUBLE_QUOTEIN_LINE_COMMENTIN_SINGLE_QUOTENORMAL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SqlCommentParser.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static SqlCommentParser.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final SqlCommentParser.State NORMAL
-
IN_SINGLE_QUOTE
public static final SqlCommentParser.State IN_SINGLE_QUOTE
-
IN_DOUBLE_QUOTE
public static final SqlCommentParser.State IN_DOUBLE_QUOTE
-
IN_BACKTICK
public static final SqlCommentParser.State IN_BACKTICK
-
IN_LINE_COMMENT
public static final SqlCommentParser.State IN_LINE_COMMENT
-
IN_BLOCK_COMMENT
public static final SqlCommentParser.State IN_BLOCK_COMMENT
-
-
Method Detail
-
values
public static SqlCommentParser.State[] 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 (SqlCommentParser.State c : SqlCommentParser.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlCommentParser.State 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
-
-