net.sf.saffron.sql
Class SqlNodeList

java.lang.Object
  |
  +--net.sf.saffron.sql.SqlNode
        |
        +--net.sf.saffron.sql.SqlNodeList

public class SqlNodeList
extends SqlNode

A SqlNodeList is a list of SqlNodes. It is also a SqlNode, so may appear in a parse tree.


Nested Class Summary
 
Nested classes inherited from class net.sf.saffron.sql.SqlNode
SqlNode.DatabaseMetaDataInvocationHandler
 
Field Summary
private  ArrayList list
           
 
Constructor Summary
SqlNodeList()
          Creates an empty SqlNodeList.
SqlNodeList(Collection collection)
          Creates a SqlNodeList containing the nodes in list.
 
Method Summary
 void add(SqlNode node)
           
 Object clone()
           
 SqlNode get(int n)
           
 List getList()
           
 int size()
           
(package private)  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, getKind, isA, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

list

private ArrayList list
Constructor Detail

SqlNodeList

public SqlNodeList()
Creates an empty SqlNodeList.


SqlNodeList

public SqlNodeList(Collection collection)
Creates a SqlNodeList containing the nodes in list. The list is copied, but the nodes in it are not.

Method Detail

getList

public List getList()

add

public void add(SqlNode node)

clone

public Object clone()
Specified by:
clone in class SqlNode

get

public SqlNode get(int n)

size

public int size()

unparse

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