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

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

public class RemapCRsVisitor
extends java.lang.Object
implements Visitor

Remap/unremap the CRs to the underlying expression.

Author:
jerry

Field Summary
private  boolean remap
           
 
Constructor Summary
RemapCRsVisitor(boolean remap)
           
 
Method Summary
 boolean skipChildren(Visitable node)
          No need to go below a SubqueryNode.
 boolean stopTraversal()
          Method that is called to see if query tree traversal should be stopped before visiting all nodes.
 Visitable visit(Visitable node)
          Don't do anything unless we have a ColumnReference node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

remap

private boolean remap
Constructor Detail

RemapCRsVisitor

public RemapCRsVisitor(boolean remap)
Method Detail

visit

public Visitable visit(Visitable node)
                throws StandardException
Don't do anything unless we have a ColumnReference node.

Specified by:
visit in interface Visitor
Parameters:
node - the node to process
Returns:
me
Throws:
StandardException - on error

skipChildren

public boolean skipChildren(Visitable node)
No need to go below a SubqueryNode.

Specified by:
skipChildren in interface Visitor
Parameters:
node - the node to process
Returns:
Whether or not to go below the node.

stopTraversal

public boolean stopTraversal()
Description copied from interface: Visitor
Method that is called to see if query tree traversal should be stopped before visiting all nodes. Useful for short circuiting traversal if we already know we are done.

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

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.