net.sf.saffron.sql
Class SqlCall
java.lang.Object
|
+--net.sf.saffron.sql.SqlNode
|
+--net.sf.saffron.sql.SqlCall
- Direct Known Subclasses:
- SqlDelete, SqlExplain, SqlInsert, SqlJoin, SqlSelect
- public class SqlCall
- extends SqlNode
A SqlCall
is a call to an operator
.
(Operators can be used to describe any syntactic construct, so in
practice, every non-leaf node in a SQL parse tree is a
SqlCall
of some kind.)
operator
public final SqlOperator operator
operands
SqlNode[] operands
SqlCall
SqlCall(SqlOperator operator,
SqlNode[] operands)
isA
public boolean isA(SqlKind kind)
- Description copied from class:
SqlNode
- Returns whether this node is a particular kind.
- Overrides:
isA
in class SqlNode
- Parameters:
kind
- a SqlKind
value
getKind
public SqlKind getKind()
- Description copied from class:
SqlNode
- Returns the type of node this is, or
SqlKind.Other
if it's
nothing special.
- Overrides:
getKind
in class SqlNode
- Returns:
- a
SqlKind
value, never null
setOperand
public void setOperand(int i,
SqlNode operand)
getOperands
public SqlNode[] getOperands()
addOperand
public void addOperand(SqlNode operand)
clone
public Object clone()
- Specified by:
clone
in class SqlNode
unparse
public void unparse(SqlWriter writer,
int leftPrec,
int rightPrec)
- Description copied from class:
SqlNode
- Writes a SQL representation of this node to a writer.
- Specified by:
unparse
in class SqlNode