|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.sql.SqlOperator org.eigenbase.sql.SqlSpecialOperator
public class SqlSpecialOperator
Generic operator for nodes with special syntax.
Field Summary |
---|
Fields inherited from class org.eigenbase.sql.SqlOperator |
---|
MaxPrec, NL |
Constructor Summary | |
---|---|
SqlSpecialOperator(String name,
SqlKind kind)
|
|
SqlSpecialOperator(String name,
SqlKind kind,
int prec)
|
|
SqlSpecialOperator(String name,
SqlKind kind,
int prec,
boolean leftAssoc,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker)
|
Method Summary | |
---|---|
SqlSyntax |
getSyntax()
Returns the syntactic type of this operator. |
int |
reduceExpr(int ordinal,
List<Object> list)
Reduces a list of operators and arguments according to the rules of precedence and associativity. |
void |
unparse(SqlWriter writer,
SqlNode[] operands,
int leftPrec,
int rightPrec)
Writes a SQL representation of a call to this operator to a writer, including parentheses if the operators on either side are of greater precedence. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SqlSpecialOperator(String name, SqlKind kind)
public SqlSpecialOperator(String name, SqlKind kind, int prec)
public SqlSpecialOperator(String name, SqlKind kind, int prec, boolean leftAssoc, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, SqlOperandTypeChecker operandTypeChecker)
Method Detail |
---|
public SqlSyntax getSyntax()
SqlOperator
getSyntax
in class SqlOperator
public void unparse(SqlWriter writer, SqlNode[] operands, int leftPrec, int rightPrec)
SqlOperator
The default implementation of this method delegates to SqlSyntax.unparse(org.eigenbase.sql.SqlWriter, org.eigenbase.sql.SqlOperator, org.eigenbase.sql.SqlNode[], int, int)
.
unparse
in class SqlOperator
public int reduceExpr(int ordinal, List<Object> list)
The default implementation throws UnsupportedOperationException
.
ordinal
- indicating the ordinal of the current operator in the list
on which a possible reduction can be madelist
- List of alternating SqlParserUtil.ToTreeListItem
and SqlNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |