|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<SqlSyntax> org.eigenbase.sql.SqlSyntax
public enum SqlSyntax
Enumeration of possible syntactic types of operators
.
Enum Constant Summary | |
---|---|
Binary
Binary operator syntax, as in "x + y". |
|
Function
Function syntax, as in "Foo(x, y)". |
|
FunctionId
Function syntax which takes no parentheses if there are no arguments, for example "CURRENTTIME". |
|
Internal
Syntax of an internal operator, which does not appear in the SQL. |
|
Postfix
Postfix unary operator syntax, as in "x ++". |
|
Prefix
Prefix unary operator syntax, as in "- x". |
|
Special
Special syntax, such as that of the SQL CASE operator, "CASE x WHEN 1 THEN 2 ELSE 3 END". |
Method Summary | |
---|---|
abstract void |
unparse(SqlWriter writer,
SqlOperator operator,
SqlNode[] operands,
int leftPrec,
int rightPrec)
Converts a call to an operator of this syntax into a string. |
static SqlSyntax |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SqlSyntax[] |
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 |
---|
public static final SqlSyntax Function
public static final SqlSyntax Binary
public static final SqlSyntax Prefix
public static final SqlSyntax Postfix
public static final SqlSyntax Special
public static final SqlSyntax FunctionId
public static final SqlSyntax Internal
Method Detail |
---|
public static final SqlSyntax[] values()
for(SqlSyntax c : SqlSyntax.values()) System.out.println(c);
public static SqlSyntax valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic abstract void unparse(SqlWriter writer, SqlOperator operator, SqlNode[] operands, int leftPrec, int rightPrec)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |