Package org.apache.calcite.sql.parser
Enum SqlAbstractParserImpl.ExprContext
- java.lang.Object
-
- java.lang.Enum<SqlAbstractParserImpl.ExprContext>
-
- org.apache.calcite.sql.parser.SqlAbstractParserImpl.ExprContext
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SqlAbstractParserImpl.ExprContext>
- Enclosing class:
- SqlAbstractParserImpl
protected static enum SqlAbstractParserImpl.ExprContext extends java.lang.Enum<SqlAbstractParserImpl.ExprContext>
Type-safe enum for context of acceptable expressions.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPT_ALL
Accept any kind of expression in this context.ACCEPT_CURSOR
Accept only CURSOR constructors, parenthesized queries, or non-query expressions in this context.ACCEPT_NON_QUERY
Accept only non-query expressions in this context.ACCEPT_NONCURSOR
Accept any kind of expression in this context, with the exception of CURSOR constructors.ACCEPT_QUERY
Accept only query expressions in this context.ACCEPT_SUB_QUERY
Accept only parenthesized queries or non-query expressions in this context.
-
Field Summary
Fields Modifier and Type Field Description static SqlAbstractParserImpl.ExprContext
ACCEPT_NONQUERY
Deprecated.static SqlAbstractParserImpl.ExprContext
ACCEPT_SUBQUERY
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description private
ExprContext()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SqlAbstractParserImpl.ExprContext
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SqlAbstractParserImpl.ExprContext[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCEPT_ALL
public static final SqlAbstractParserImpl.ExprContext ACCEPT_ALL
Accept any kind of expression in this context.
-
ACCEPT_NONCURSOR
public static final SqlAbstractParserImpl.ExprContext ACCEPT_NONCURSOR
Accept any kind of expression in this context, with the exception of CURSOR constructors.
-
ACCEPT_QUERY
public static final SqlAbstractParserImpl.ExprContext ACCEPT_QUERY
Accept only query expressions in this context.
-
ACCEPT_NON_QUERY
public static final SqlAbstractParserImpl.ExprContext ACCEPT_NON_QUERY
Accept only non-query expressions in this context.
-
ACCEPT_SUB_QUERY
public static final SqlAbstractParserImpl.ExprContext ACCEPT_SUB_QUERY
Accept only parenthesized queries or non-query expressions in this context.
-
ACCEPT_CURSOR
public static final SqlAbstractParserImpl.ExprContext ACCEPT_CURSOR
Accept only CURSOR constructors, parenthesized queries, or non-query expressions in this context.
-
-
Field Detail
-
ACCEPT_SUBQUERY
@Deprecated public static final SqlAbstractParserImpl.ExprContext ACCEPT_SUBQUERY
Deprecated.
-
ACCEPT_NONQUERY
@Deprecated public static final SqlAbstractParserImpl.ExprContext ACCEPT_NONQUERY
Deprecated.
-
-
Method Detail
-
values
public static SqlAbstractParserImpl.ExprContext[] 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 (SqlAbstractParserImpl.ExprContext c : SqlAbstractParserImpl.ExprContext.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlAbstractParserImpl.ExprContext valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-