| java.lang.Object org.apache.derby.impl.sql.compile.HasNodeVisitor
HasNodeVisitor | public class HasNodeVisitor implements Visitor(Code) | | Find out if we have a particular node anywhere in the
tree. Stop traversal as soon as we find one.
Can find any type of node -- the class or class name
of the target node is passed in as a constructor
parameter.
author: jamie |
HasNodeVisitor | public HasNodeVisitor(Class nodeClass)(Code) | | Construct a visitor
Parameters: nodeClass - the class of the node that we are looking for. |
HasNodeVisitor | public HasNodeVisitor(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. |
hasNode | public boolean hasNode()(Code) | | Indicate whether we found the node in
question
true/false |
reset | public void reset()(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) | | Stop traversal if we found the target node
true/false |
visit | public Visitable visit(Visitable node)(Code) | | If we have found the target node, we are done.
Parameters: node - the node to process me |
|
|