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.)


Nested Class Summary
 
Nested classes inherited from class net.sf.saffron.sql.SqlNode
SqlNode.DatabaseMetaDataInvocationHandler
 
Field Summary
(package private)  SqlNode[] operands
           
 SqlOperator operator
           
 
Constructor Summary
(package private) SqlCall(SqlOperator operator, SqlNode[] operands)
           
 
Method Summary
 void addOperand(SqlNode operand)
           
 Object clone()
           
 SqlKind getKind()
          Returns the type of node this is, or SqlKind.Other if it's nothing special.
 SqlNode[] getOperands()
           
 boolean isA(SqlKind kind)
          Returns whether this node is a particular kind.
 void setOperand(int i, SqlNode operand)
           
 void unparse(SqlWriter writer, int leftPrec, int rightPrec)
          Writes a SQL representation of this node to a writer.
 
Methods inherited from class net.sf.saffron.sql.SqlNode
cloneArray, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

operator

public final SqlOperator operator

operands

SqlNode[] operands
Constructor Detail

SqlCall

SqlCall(SqlOperator operator,
        SqlNode[] operands)
Method Detail

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

SourceForge.net_Logo