org.eigenbase.sql.advise
Enum SqlSimpleParser.TokenType

java.lang.Object
  extended by java.lang.Enum<SqlSimpleParser.TokenType>
      extended by org.eigenbase.sql.advise.SqlSimpleParser.TokenType
All Implemented Interfaces:
Serializable, Comparable<SqlSimpleParser.TokenType>
Enclosing class:
SqlSimpleParser

static enum SqlSimpleParser.TokenType
extends Enum<SqlSimpleParser.TokenType>


Enum Constant Summary
BY
           
COMMA
           
COMMENT
           
DQID
          double-quoted identifier, e.g.
EXCEPT
           
FROM
           
GROUP
           
HAVING
           
ID
          identifier, or indeed any miscellaneous sequence of characters
INTERSECT
           
JOIN
           
LPAREN
          left parenthesis
ON
           
ORDER
           
QUERY
          A token created by reducing an entire subquery.
RPAREN
          right parenthesis
SELECT
           
SQID
          single-quoted string literal, e.g.
UNION
           
USING
           
WHERE
           
 
Method Summary
 String sql()
           
static SqlSimpleParser.TokenType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SqlSimpleParser.TokenType[] 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

SELECT

public static final SqlSimpleParser.TokenType SELECT

FROM

public static final SqlSimpleParser.TokenType FROM

JOIN

public static final SqlSimpleParser.TokenType JOIN

ON

public static final SqlSimpleParser.TokenType ON

USING

public static final SqlSimpleParser.TokenType USING

WHERE

public static final SqlSimpleParser.TokenType WHERE

GROUP

public static final SqlSimpleParser.TokenType GROUP

HAVING

public static final SqlSimpleParser.TokenType HAVING

ORDER

public static final SqlSimpleParser.TokenType ORDER

BY

public static final SqlSimpleParser.TokenType BY

UNION

public static final SqlSimpleParser.TokenType UNION

INTERSECT

public static final SqlSimpleParser.TokenType INTERSECT

EXCEPT

public static final SqlSimpleParser.TokenType EXCEPT

LPAREN

public static final SqlSimpleParser.TokenType LPAREN
left parenthesis


RPAREN

public static final SqlSimpleParser.TokenType RPAREN
right parenthesis


ID

public static final SqlSimpleParser.TokenType ID
identifier, or indeed any miscellaneous sequence of characters


DQID

public static final SqlSimpleParser.TokenType DQID
double-quoted identifier, e.g. "FOO""BAR"


SQID

public static final SqlSimpleParser.TokenType SQID
single-quoted string literal, e.g. 'foobar'


COMMENT

public static final SqlSimpleParser.TokenType COMMENT

COMMA

public static final SqlSimpleParser.TokenType COMMA

QUERY

public static final SqlSimpleParser.TokenType QUERY
A token created by reducing an entire subquery.

Method Detail

values

public static final SqlSimpleParser.TokenType[] 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(SqlSimpleParser.TokenType c : SqlSimpleParser.TokenType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static SqlSimpleParser.TokenType 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

sql

public String sql()