org.apache.jsieve.util
Class NodeTraverser

java.lang.Object
  extended by org.apache.jsieve.util.NodeTraverser

public class NodeTraverser
extends java.lang.Object

Traverses nodes. Once instance can be safely shared between threads.


Constructor Summary
NodeTraverser()
           
 
Method Summary
 void traverse(NodeHandler handler, org.apache.jsieve.parser.generated.Node root)
          Traverses the tree structure rooted at the given node.
 void traverse(SieveHandler handler, org.apache.jsieve.parser.generated.Node root)
          Traverses the tree structure rooted at the given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeTraverser

public NodeTraverser()
Method Detail

traverse

public void traverse(NodeHandler handler,
                     org.apache.jsieve.parser.generated.Node root)
              throws SieveException
Traverses the tree structure rooted at the given node. The nodes contained are reported to the handler.

Parameters:
root - not null
handler - not null
Throws:
SieveException - when traversal fails
HaltTraversalException - when traversal is halted by handler

traverse

public void traverse(SieveHandler handler,
                     org.apache.jsieve.parser.generated.Node root)
              throws SieveException
Traverses the tree structure rooted at the given node. The nodes contained are reported to the handler.

Parameters:
root - not null
handler - not null
Throws:
SieveException - when traversal fails
HaltTraversalException - when traversal is halted by handler


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.