|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.compile.RemapCRsVisitor
public class RemapCRsVisitor
Remap/unremap the CRs to the underlying expression.
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. |
boolean |
visitChildrenFirst(Visitable node)
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 remap
Constructor Detail |
---|
public RemapCRsVisitor(boolean remap)
Method Detail |
---|
public Visitable visit(Visitable node) throws StandardException
visit
in interface Visitor
node
- the node to process
StandardException
- on errorpublic boolean skipChildren(Visitable node)
skipChildren
in interface Visitor
node
- the node to process
public boolean visitChildrenFirst(Visitable node)
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
node
- the top node of a sub-tree about to be visited
true
if node
's children should be visited
before node
, false
otherwisepublic boolean stopTraversal()
Visitor
stopTraversal
in interface Visitor
|
Built on Thu 2012-03-29 21:53:33+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |