org.imemex.logicalplan.treeprocessors
Class AbstractTreeProcessor

java.lang.Object
  extended by org.imemex.logicalplan.treeprocessors.AbstractTreeProcessor
All Implemented Interfaces:
LogicalTreeProcessor

public abstract class AbstractTreeProcessor
extends java.lang.Object
implements LogicalTreeProcessor

The abstract tree processor can be used, if a logical node tree should be completely traversed until all branches were either matched or visited.

Author:
Lukas Blunschi

Constructor Summary
AbstractTreeProcessor()
           
 
Method Summary
 void process(LogicalNode tree)
          Recursively traverse tree until all branches were either matched or visited.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTreeProcessor

public AbstractTreeProcessor()
Method Detail

process

public final void process(LogicalNode tree)
Recursively traverse tree until all branches were either matched or visited.

Specified by:
process in interface LogicalTreeProcessor
Parameters:
tree - tree to match against.