org.synchronoss.cpo
Interface INodeVisitor

Package class diagram package INodeVisitor
All Known Implementing Classes:
JdbcWhereBuilder

public interface INodeVisitor

This is the interface for the visitors to the Node Hierarchy


Method Summary
 boolean visit(Node node)
          This is called for component elements which have no children
 boolean visitBegin(Node node)
          This is called by composite nodes prior to visiting children
 boolean visitEnd(Node node)
          This is called by composite nodes after visiting children
 boolean visitMiddle(Node node)
          This is called for composite nodes between visiting children
 

Method Detail

visitBegin

boolean visitBegin(Node node)
                   throws java.lang.Exception
This is called by composite nodes prior to visiting children

Parameters:
val - The node to be visited
Returns:
a boolean (false) to end visit or (true) to continue visiting
Throws:
java.lang.Exception

visitMiddle

boolean visitMiddle(Node node)
                    throws java.lang.Exception
This is called for composite nodes between visiting children

Parameters:
val - The node to be visited
Returns:
a boolean (false) to end visit or (true) to continue visiting
Throws:
java.lang.Exception

visitEnd

boolean visitEnd(Node node)
                 throws java.lang.Exception
This is called by composite nodes after visiting children

Parameters:
val - The node to be visited
Returns:
a boolean (false) to end visit or (true) to continue visiting
Throws:
java.lang.Exception

visit

boolean visit(Node node)
              throws java.lang.Exception
This is called for component elements which have no children

Parameters:
val - The element to be visited
Returns:
a boolean (false) to end visit or (true) to continue visiting
Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.