public final class StatementTree extends Object implements Serializable, Cloneable
Think of this as the model of a query after the grammar has been parsed and before it is evaluated.
Constructor and Description |
---|
StatementTree(String statement_class)
Constructs the StatementTree.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Performs a deep clone of this object, calling 'clone' on any elements
that are mutable or shallow copying immutable members.
|
static Object |
cloneSingleObject(Object entry)
Clones a single object.
|
boolean |
getBoolean(String entry_name)
Gets a boolean entry from the statement tree.
|
String |
getClassName()
Gets the interpreter class that services this tree.
|
int |
getInt(String entry_name)
Gets an integer entry from the statement tree.
|
Object |
getObject(String entry_name)
Gets an object entry from the statement tree.
|
void |
prepareAllExpressions(ExpressionPreparer preparer)
For each expression in this StatementTree this method will call the
'prepare' method in each expression.
|
void |
putBoolean(String entry_name,
boolean b)
Puts a boolean into the statement tree map.
|
void |
putInt(String entry_name,
int v)
Puts an integer into the statement tree map.
|
void |
putObject(String entry_name,
Object ob)
Puts a new entry into the statement tree map.
|
String |
toString()
For diagnostic.
|
public StatementTree(String statement_class)
statement_class
- the name of the class that interpretes this
statement (eg. com.mckoi.database.interpret.Select).public void putObject(String entry_name, Object ob)
public void putBoolean(String entry_name, boolean b)
public void putInt(String entry_name, int v)
public boolean getBoolean(String entry_name)
public int getInt(String entry_name)
public String getClassName()
public void prepareAllExpressions(ExpressionPreparer preparer) throws DatabaseException
DatabaseException
public static Object cloneSingleObject(Object entry) throws CloneNotSupportedException
CloneNotSupportedException
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2015. All rights reserved.