| java.lang.Object org.apache.derby.impl.sql.compile.CollectNodesVisitor
CollectNodesVisitor | public class CollectNodesVisitor implements Visitor(Code) | | Collect all nodes of the designated type to be returned
in a vector.
Can find any type of node -- the class or class name
of the target node is passed in as a constructor
parameter.
author: jamie |
CollectNodesVisitor | public CollectNodesVisitor(Class nodeClass)(Code) | | Construct a visitor
Parameters: nodeClass - the class of the node that we are looking for. |
CollectNodesVisitor | public CollectNodesVisitor(Class nodeClass, Class skipOverClass)(Code) | | Construct a visitor
Parameters: nodeClass - the class of the node that we are looking for. Parameters: skipOverClass - do not go below thisnode when searching for nodeClass. |
getList | public Vector getList()(Code) | | Reset the status so it can be run again.
|
skipChildren | public boolean skipChildren(Visitable node)(Code) | | Don't visit childen under the skipOverClass
node, if it isn't null.
true/false |
stopTraversal | public boolean stopTraversal()(Code) | | |
visit | public Visitable visit(Visitable node)(Code) | | If we have found the target node, we are done.
Parameters: node - the node to process me |
|
|