com.bbn.swede.core.dom
Class OASTNode.NodeCleanupVisitor

java.lang.Object
  extended bycom.bbn.swede.core.dom.OASTNode.NodeCleanupVisitor
All Implemented Interfaces:
IOASTNodeVisitor
Enclosing class:
OASTNode

public class OASTNode.NodeCleanupVisitor
extends Object
implements IOASTNodeVisitor

Calls OASTNode.cleanup() on visited nodes in preparation for their removal.

Author:
jlerner

Constructor Summary
OASTNode.NodeCleanupVisitor()
           
 
Method Summary
 boolean visit(OASTNode node)
          Performs the recursion's action for a node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OASTNode.NodeCleanupVisitor

public OASTNode.NodeCleanupVisitor()
Method Detail

visit

public boolean visit(OASTNode node)
Description copied from interface: IOASTNodeVisitor
Performs the recursion's action for a node. The return value indicates whether to process the node's children.

Specified by:
visit in interface IOASTNodeVisitor
Parameters:
node - The node
Returns:
true to continue and visit node's children, false to prevent them from being processed.


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.