| Modifier and Type | Field and Description |
|---|---|
private boolean |
hasCorrelatedCRs |
| Constructor and Description |
|---|
HasCorrelatedCRsVisitor()
Construct a visitor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasCorrelatedCRs()
Indicate whether we found the node in
question
|
void |
setHasCorrelatedCRs(boolean value)
Shortcut to set if hasCorrelatedCRs
|
boolean |
skipChildren(Visitable v)
Method that is called to indicate whether
we should skip all nodes below this node
for traversal.
|
boolean |
stopTraversal()
Stop traversal if we found the target node
|
Visitable |
visit(Visitable node)
If we have found the target node, we are done.
|
boolean |
visitChildrenFirst(Visitable v)
Method that is called to see if
visit() should be called on
the children of node before it is called on node itself. |
public boolean stopTraversal()
stopTraversal in interface Visitorpublic boolean skipChildren(Visitable v)
VisitorDiffers from stopTraversal() in that it only affects subtrees, rather than the entire traversal.
skipChildren in interface Visitorv - the node to processpublic boolean visitChildrenFirst(Visitable v)
Visitorvisit() should be called on
the children of node before it is called on node itself.
If this method always returns true, the visitor will walk the
tree bottom-up. If it always returns false, the tree is visited
top-down.visitChildrenFirst in interface Visitorv - the top node of a sub-tree about to be visitedtrue if node's children should be visited
before node, false otherwisepublic boolean hasCorrelatedCRs()
public void setHasCorrelatedCRs(boolean value)
value - true/falseApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.