com.bbn.swede.core.dom
Class DeltaCollector

java.lang.Object
  extended bycom.bbn.swede.core.dom.DeltaCollector
All Implemented Interfaces:
IOASTDeltaVisitor

class DeltaCollector
extends Object
implements IOASTDeltaVisitor

A visitor that collects deltas that match a type mask.

Author:
jlerner

Constructor Summary
DeltaCollector(int iTypeMask)
          Constructs a visitor to find deltas matching a type mask.
 
Method Summary
 List getDeltas()
          Retrieves the list of matching deltas.
 boolean visit(IOASTDelta delta)
          Performs the recursion's action for a delta.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeltaCollector

public DeltaCollector(int iTypeMask)
Constructs a visitor to find deltas matching a type mask.

Parameters:
iTypeMask - The type mask.
Method Detail

visit

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

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

getDeltas

public List getDeltas()
Retrieves the list of matching deltas.

Returns:
The matching deltas.


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