|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.compile.HasCorrelatedCRsVisitor
public class HasCorrelatedCRsVisitor
Find out if we have an correlated column reference anywhere below us. Stop traversal as soon as we find one.
Field Summary | |
---|---|
private boolean |
hasCorrelatedCRs
|
Constructor Summary | |
---|---|
HasCorrelatedCRsVisitor()
Construct a visitor |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean hasCorrelatedCRs
Constructor Detail |
---|
public HasCorrelatedCRsVisitor()
Method Detail |
---|
public Visitable visit(Visitable node)
visit
in interface Visitor
node
- the node to process
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 process
public 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 visited
true
if node
's children should be visited
before node
, false
otherwisepublic boolean hasCorrelatedCRs()
public void setHasCorrelatedCRs(boolean value)
value
- true/false
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |