View Javadoc

1   /*
2    * $Id: IOASTDeltaVisitor.java,v 1.2 2005/05/18 18:28:10 jlerner Exp $
3    *
4    * Copyright (c) 1999-2004, BBN Technologies, LLC.
5    * All rights reserved.
6    * http://www.daml.org/legal/opensource/bbn_license.html
7    */
8    
9   package com.bbn.swede.core.dom;
10  
11  /***
12   * Interface for performing preorder traversals of an OASTDelta.
13   * @see IOASTDelta#accept(IOASTDeltaVisitor)
14   * @author jlerner
15   */
16  public interface IOASTDeltaVisitor
17  {
18     /***
19      * Performs the recursion's action for a delta.  The return value indicates 
20      * whether to process the node's children. 
21      * @param delta The delta
22      * @return <code>true</code> to continue and visit <code>delta</code>'s 
23      *         children, <code>false</code> to prevent them from being processed.
24      */
25     boolean visit(IOASTDelta delta);
26  
27  }