|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saffron.sql.SqlNode
A SqlNode
is a SQL parse tree. It may be an operator
, literal
, identifier
,
and so forth.
Nested Class Summary | |
static class |
SqlNode.DatabaseMetaDataInvocationHandler
Handles particular DatabaseMetaData methods; invocations of
other methods will fall through to the base class, BarfingInvocationHandler , which will throw an error. |
Constructor Summary | |
(package private) |
SqlNode()
|
Method Summary | |
abstract Object |
clone()
|
static SqlNode[] |
cloneArray(SqlNode[] nodes)
|
private static DatabaseMetaData |
dummyDatabaseMetaData()
|
SqlKind |
getKind()
Returns the type of node this is, or SqlKind.Other if it's
nothing special. |
boolean |
isA(SqlKind kind)
Returns whether this node is a particular kind. |
String |
toString()
|
String |
toString(SqlDialect dialect)
Returns the text of the tree of which this SqlNode is the
root. |
(package private) abstract void |
unparse(SqlWriter writer,
int leftPrec,
int rightPrec)
Writes a SQL representation of this node to a writer. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
SqlNode()
Method Detail |
public abstract Object clone()
clone
in class Object
public boolean isA(SqlKind kind)
kind
- a SqlKind
valuepublic SqlKind getKind()
SqlKind.Other
if it's
nothing special.
SqlKind
value, never nullpublic static SqlNode[] cloneArray(SqlNode[] nodes)
public String toString()
toString
in class Object
public String toString(SqlDialect dialect)
SqlNode
is the
root.
abstract void unparse(SqlWriter writer, int leftPrec, int rightPrec)
private static DatabaseMetaData dummyDatabaseMetaData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |