Class RemapCRsVisitor
- java.lang.Object
-
- org.apache.derby.impl.sql.compile.RemapCRsVisitor
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
remap
-
Constructor Summary
Constructors Constructor Description RemapCRsVisitor(boolean remap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 ifvisit()
should be called on the children ofnode
before it is called onnode
itself.
-
-
-
Method Detail
-
visit
public Visitable visit(Visitable node) throws StandardException
Don't do anything unless we have a ColumnReference node.- Specified by:
visit
in interfaceVisitor
- 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 interfaceVisitor
- Parameters:
node
- the node to process- Returns:
- Whether or not to go below the node.
-
visitChildrenFirst
public boolean visitChildrenFirst(Visitable node)
Description copied from interface:Visitor
Method that is called to see ifvisit()
should be called on the children ofnode
before it is called onnode
itself. If this method always returnstrue
, the visitor will walk the tree bottom-up. If it always returnsfalse
, the tree is visited top-down.- Specified by:
visitChildrenFirst
in interfaceVisitor
- Parameters:
node
- the top node of a sub-tree about to be visited- Returns:
true
ifnode
's children should be visited beforenode
,false
otherwise
-
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 interfaceVisitor
- Returns:
- true/false
-
-