Class SimpleNodeTreeVisitor
- java.lang.Object
-
- org.apache.cayenne.access.sqlbuilder.sqltree.SimpleNodeTreeVisitor
-
- All Implemented Interfaces:
NodeTreeVisitor
- Direct Known Subclasses:
BaseSQLTreeProcessor
,TypeAwareSQLTreeProcessor
public abstract class SimpleNodeTreeVisitor extends Object implements NodeTreeVisitor
- Since:
- 4.2
-
-
Constructor Summary
Constructors Constructor Description SimpleNodeTreeVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onChildNodeEnd(Node parent, Node child, int index, boolean hasMore)
boolean
onChildNodeStart(Node parent, Node child, int index, boolean hasMore)
void
onNodeEnd(Node node)
boolean
onNodeStart(Node node)
-
-
-
Method Detail
-
onNodeStart
public boolean onNodeStart(Node node)
- Specified by:
onNodeStart
in interfaceNodeTreeVisitor
- Parameters:
node
- to visit- Returns:
- false if visitor should stop
-
onChildNodeStart
public boolean onChildNodeStart(Node parent, Node child, int index, boolean hasMore)
- Specified by:
onChildNodeStart
in interfaceNodeTreeVisitor
- Parameters:
parent
- nodechild
- nodeindex
- of this child in parenthasMore
- true if more children after this child- Returns:
- false if visitor should stop
-
onChildNodeEnd
public void onChildNodeEnd(Node parent, Node child, int index, boolean hasMore)
- Specified by:
onChildNodeEnd
in interfaceNodeTreeVisitor
-
onNodeEnd
public void onNodeEnd(Node node)
- Specified by:
onNodeEnd
in interfaceNodeTreeVisitor
-
-