Package org.synchronoss.cpo.core
Interface NodeVisitor
- All Known Implementing Classes:
BindableWhereBuilder
public interface NodeVisitor
This is the interface for the visitors to the Node Hierarchy
-
Method Summary
Modifier and TypeMethodDescriptionbooleanThis is called for component elements which have no childrenbooleanvisitBegin(Node node) This is called by composite nodes prior to visiting childrenbooleanThis is called by composite nodes after visiting childrenbooleanvisitMiddle(Node node) This is called for composite nodes between visiting children
-
Method Details
-
visitBegin
This is called by composite nodes prior to visiting children- Parameters:
node- The node to be visited- Returns:
- a boolean (false) to end visit or (true) to continue visiting
-
visitMiddle
This is called for composite nodes between visiting children- Parameters:
node- The node to be visited- Returns:
- a boolean (false) to end visit or (true) to continue visiting
-
visitEnd
This is called by composite nodes after visiting children- Parameters:
node- The node to be visited- Returns:
- a boolean (false) to end visit or (true) to continue visiting
-
visit
This is called for component elements which have no children- Parameters:
node- The element to be visited- Returns:
- a boolean (false) to end visit or (true) to continue visiting
-