org.apache.derby.impl.sql.compile
Class HasCorrelatedCRsVisitor

java.lang.Object
  extended byorg.apache.derby.impl.sql.compile.HasCorrelatedCRsVisitor
All Implemented Interfaces:
Visitor

public class HasCorrelatedCRsVisitor
extends java.lang.Object
implements Visitor

Find out if we have an correlated column reference anywhere below us. Stop traversal as soon as we find one.

Author:
jamie

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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hasCorrelatedCRs

private boolean hasCorrelatedCRs
Constructor Detail

HasCorrelatedCRsVisitor

public HasCorrelatedCRsVisitor()
Construct a visitor

Method Detail

visit

public Visitable visit(Visitable node)
If we have found the target node, we are done.

Specified by:
visit in interface Visitor
Parameters:
node - the node to process
Returns:
me

stopTraversal

public boolean stopTraversal()
Stop traversal if we found the target node

Specified by:
stopTraversal in interface Visitor
Returns:
true/false

skipChildren

public boolean skipChildren(Visitable v)
Description copied from interface: Visitor
Method 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:
skipChildren in interface Visitor
Parameters:
v - the node to process
Returns:
true/false

hasCorrelatedCRs

public boolean hasCorrelatedCRs()
Indicate whether we found the node in question

Returns:
true/false

setHasCorrelatedCRs

public void setHasCorrelatedCRs(boolean value)
Shortcut to set if hasCorrelatedCRs

Returns:
nothing

Built on Tue 2006-10-10 19:23:47+0200, from revision exported

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.