Package org.apache.cayenne.exp
Class TraversalHelper
java.lang.Object
org.apache.cayenne.exp.TraversalHelper
- All Implemented Interfaces:
TraversalHandler
Noop implementation of TraversalHandler.
Useful as a superclass for partial implementations
of TraversalHandler.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
endNode
(Expression node, Expression parentNode) Called during the traversal after an expression node children processing is finished.void
finishedChild
(Expression node, int childIndex, boolean hasMoreChildren) Called during traversal after a child of expression has been visited.void
objectNode
(Object leaf, Expression parentNode) Called during the traversal when a leaf non-expression node is encountered.void
startNode
(Expression node, Expression parentNode) Called during the traversal before an expression node children processing is started.
-
Constructor Details
-
TraversalHelper
public TraversalHelper()
-
-
Method Details
-
startNode
Description copied from interface:TraversalHandler
Called during the traversal before an expression node children processing is started.- Specified by:
startNode
in interfaceTraversalHandler
-
endNode
Description copied from interface:TraversalHandler
Called during the traversal after an expression node children processing is finished.- Specified by:
endNode
in interfaceTraversalHandler
-
finishedChild
Description copied from interface:TraversalHandler
Called during traversal after a child of expression has been visited.- Specified by:
finishedChild
in interfaceTraversalHandler
-
objectNode
Description copied from interface:TraversalHandler
Called during the traversal when a leaf non-expression node is encountered.- Specified by:
objectNode
in interfaceTraversalHandler
-