Modifier and Type | Field | Description |
---|---|---|
private boolean |
hasCorrelatedCRs |
Constructor | Description |
---|---|
HasCorrelatedCRsVisitor() |
Construct a visitor
|
Modifier and Type | Method | Description |
---|---|---|
(package private) boolean |
hasCorrelatedCRs() |
Indicate whether we found the node in
question
|
(package private) 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 Visitor
public boolean skipChildren(Visitable v)
Visitor
Differs from stopTraversal() in that it only affects subtrees, rather than the entire traversal.
skipChildren
in interface Visitor
v
- the node to processpublic boolean visitChildrenFirst(Visitable v)
Visitor
visit()
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 Visitor
v
- the top node of a sub-tree about to be visitedtrue
if node
's children should be visited
before node
, false
otherwiseboolean hasCorrelatedCRs()
void setHasCorrelatedCRs(boolean value)
value
- true/falseApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.