org.apache.derby.impl.sql.compile
Class QueryTreeNodeVector
java.lang.Object
org.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.QueryTreeNodeVector
- All Implemented Interfaces:
- Visitable
- Direct Known Subclasses:
- FromList, OrderedColumnList, PredicateList, ResultColumnList, SubqueryList, TableElementList, ValueNodeList
- abstract class QueryTreeNodeVector
- extends QueryTreeNode
QueryTreeNodeVector is the root class for all lists of query tree nodes.
It provides a wrapper for java.util.Vector. All
lists of query tree nodes inherit from QueryTreeNodeVector.
- Author:
- Jerry Brenner
Field Summary |
private java.util.Vector |
v
|
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
bind, convertDefaultNode, debugFlush, debugPrint, executeSchemaName, executeStatementName, formatNodeString, foundString, generate, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getRowEstimate, getSchemaDescriptor, getSchemaDescriptor, getSPSName, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, init, init, init, init, isAtomic, isInstanceOf, isSessionSchema, isSessionSchema, makeConstantAction, makeResultDescription, makeTableName, needsSavepoint, nodeHeader, optimize, parseQueryText, printLabel, printSubNodes, referencesSessionSchema, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, treePrint, treePrint, verifyClassExist |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
v
private java.util.Vector v
QueryTreeNodeVector
QueryTreeNodeVector()
size
public final int size()
elementAt
public QueryTreeNode elementAt(int index)
addElement
public final void addElement(QueryTreeNode qt)
removeElementAt
final void removeElementAt(int index)
removeElement
final void removeElement(QueryTreeNode qt)
remove
final java.lang.Object remove(int index)
indexOf
final int indexOf(QueryTreeNode qt)
setElementAt
final void setElementAt(QueryTreeNode qt,
int index)
destructiveAppend
public void destructiveAppend(QueryTreeNodeVector qtnv)
nondestructiveAppend
public void nondestructiveAppend(QueryTreeNodeVector qtnv)
removeAllElements
final void removeAllElements()
insertElementAt
final void insertElementAt(QueryTreeNode qt,
int index)
toString
public java.lang.String toString()
- Format this list as a string
We can simply iterate through the list. Note each list member
is a QueryTreeNode, and so should have its specialization of
toString defined.
- Overrides:
toString
in class QueryTreeNode
- Returns:
- This list formatted as a String
accept
public Visitable accept(Visitor v)
throws StandardException
- Accept a visitor, and call v.visit()
on child nodes as necessary.
- Specified by:
accept
in interface Visitable
- Overrides:
accept
in class QueryTreeNode
- Parameters:
v
- the visitor
- Throws:
StandardException
- on error
Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.