Class HasCorrelatedCRsVisitor
- java.lang.Object
-
- org.apache.derby.impl.sql.compile.HasCorrelatedCRsVisitor
-
-
Field Summary
Fields Modifier and Type Field Description private booleanhasCorrelatedCRs
-
Constructor Summary
Constructors Constructor Description HasCorrelatedCRsVisitor()Construct a visitor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanhasCorrelatedCRs()Indicate whether we found the node in question(package private) voidsetHasCorrelatedCRs(boolean value)Shortcut to set if hasCorrelatedCRsbooleanskipChildren(Visitable v)Method that is called to indicate whether we should skip all nodes below this node for traversal.booleanstopTraversal()Stop traversal if we found the target nodeVisitablevisit(Visitable node)If we have found the target node, we are done.booleanvisitChildrenFirst(Visitable v)Method that is called to see ifvisit()should be called on the children ofnodebefore it is called onnodeitself.
-
-
-
Method Detail
-
stopTraversal
public boolean stopTraversal()
Stop traversal if we found the target node- Specified by:
stopTraversalin interfaceVisitor- Returns:
- true/false
-
skipChildren
public boolean skipChildren(Visitable v)
Description copied from interface:VisitorMethod that is called to indicate whether we should skip all nodes below this node for traversal. Useful if we want to effectively ignore/prune all branches under a particular node.Differs from stopTraversal() in that it only affects subtrees, rather than the entire traversal.
- Specified by:
skipChildrenin interfaceVisitor- Parameters:
v- the node to process- Returns:
- true/false
-
visitChildrenFirst
public boolean visitChildrenFirst(Visitable v)
Description copied from interface:VisitorMethod that is called to see ifvisit()should be called on the children ofnodebefore it is called onnodeitself. If this method always returnstrue, the visitor will walk the tree bottom-up. If it always returnsfalse, the tree is visited top-down.- Specified by:
visitChildrenFirstin interfaceVisitor- Parameters:
v- the top node of a sub-tree about to be visited- Returns:
trueifnode's children should be visited beforenode,falseotherwise
-
hasCorrelatedCRs
boolean hasCorrelatedCRs()
Indicate whether we found the node in question- Returns:
- true/false
-
setHasCorrelatedCRs
void setHasCorrelatedCRs(boolean value)
Shortcut to set if hasCorrelatedCRs- Parameters:
value- true/false
-
-