org.eigenbase.sql.parser
Enum SqlAbstractParserImpl.ExprContext

java.lang.Object
  extended by java.lang.Enum<SqlAbstractParserImpl.ExprContext>
      extended by org.eigenbase.sql.parser.SqlAbstractParserImpl.ExprContext
All Implemented Interfaces:
Serializable, Comparable<SqlAbstractParserImpl.ExprContext>
Enclosing class:
SqlAbstractParserImpl

protected static enum SqlAbstractParserImpl.ExprContext
extends Enum<SqlAbstractParserImpl.ExprContext>

Type-safe enum for context of acceptable expressions.


Enum Constant Summary
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_NONCURSOR
          Accept any kind of expression in this context, with the exception of CURSOR constructors.
ACCEPT_NONQUERY
          Accept only non-query expressions in this context.
ACCEPT_QUERY
          Accept only query expressions in this context.
ACCEPT_SUBQUERY
          Accept only parenthesized queries or non-query expressions in this context.
 
Method Summary
static SqlAbstractParserImpl.ExprContext valueOf(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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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_NONQUERY

public static final SqlAbstractParserImpl.ExprContext ACCEPT_NONQUERY
Accept only non-query expressions in this context.


ACCEPT_SUBQUERY

public static final SqlAbstractParserImpl.ExprContext ACCEPT_SUBQUERY
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.

Method Detail

values

public static final SqlAbstractParserImpl.ExprContext[] values()
Returns an array containing the constants of this enum type, in the order they're 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're declared

valueOf

public static SqlAbstractParserImpl.ExprContext 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 name