net.sf.jga.fn
Class AdaptorVisitor

java.lang.Object
  extended by net.sf.jga.fn.AbstractVisitor
      extended by net.sf.jga.fn.AdaptorVisitor
All Implemented Interfaces:
AndBinary.Visitor, AndGenerator.Visitor, AndUnary.Visitor, ApplyBinary.Visitor, ApplyGenerator.Visitor, ApplyUnary.Visitor, Bind.Visitor, Bind1st.Visitor, Bind2nd.Visitor, ChainBinary.Visitor, ChainUnary.Visitor, ComposeBinary.Visitor, ComposeUnary.Visitor, CompoundBinary.Visitor, CompoundGenerator.Visitor, CompoundUnary.Visitor, ConditionalBinary.Visitor, ConditionalGenerator.Visitor, ConditionalUnary.Visitor, Distribute.Visitor, Generate.Visitor, Generate1st.Visitor, Generate2nd.Visitor, GenerateBinary.Visitor, GenerateUnary.Visitor, OrBinary.Visitor, OrGenerator.Visitor, OrUnary.Visitor, All.Visitor, Any.Visitor, Visitor

public class AdaptorVisitor
extends AbstractVisitor
implements All.Visitor, AndBinary.Visitor, AndGenerator.Visitor, AndUnary.Visitor, Any.Visitor, ApplyBinary.Visitor, ApplyGenerator.Visitor, ApplyUnary.Visitor, Bind.Visitor, Bind1st.Visitor, Bind2nd.Visitor, ChainBinary.Visitor, ChainUnary.Visitor, ComposeBinary.Visitor, ComposeUnary.Visitor, CompoundBinary.Visitor, CompoundGenerator.Visitor, CompoundUnary.Visitor, ConditionalBinary.Visitor, ConditionalGenerator.Visitor, ConditionalUnary.Visitor, Distribute.Visitor, Generate.Visitor, Generate1st.Visitor, Generate2nd.Visitor, GenerateBinary.Visitor, GenerateUnary.Visitor, OrBinary.Visitor, OrGenerator.Visitor, OrUnary.Visitor

Visitor that performs a walk of compound functor structures. This visitor implements the Visitor interface associated with all of the compounding functors in the net.sf.jga.fn.adaptor package, as well as the two that are in the net.sf.jga.fn.logical package.

Basing visitors on this base class will allow most implementations to ignore the tree structure, and implement visiting the leaf node functors that are of interest. When used in this way, the tree nodes will be ignored by the visitor (exception that the visit walks through them). If the tree nodes are to be considered during the visit, then the implementation can override methods contained in this class: depending on where in the overridden implementation the call to super() occurs, either breadth-first, depth-first, or in-line traversal can be supported.

Copyright © 2005 David A. Hall

Author:
David A. Hall

Constructor Summary
AdaptorVisitor()
           
 
Method Summary
 void visit(All<?> host)
           
 void visit(AndBinary<?,?> host)
           
 void visit(AndGenerator host)
           
 void visit(AndUnary<?> host)
           
 void visit(Any<?> host)
           
 void visit(ApplyBinary<?,?> host)
           
 void visit(ApplyGenerator host)
           
 void visit(ApplyUnary<?> host)
           
 void visit(Bind<?,?> host)
           
 void visit(Bind1st<?,?,?> host)
           
 void visit(Bind2nd<?,?,?> host)
           
 void visit(ChainBinary<?,?,?,?> host)
           
 void visit(ChainUnary<?,?,?> host)
           
 void visit(ComposeBinary<?,?,?,?,?> host)
           
 void visit(ComposeUnary<?,?,?,?> host)
           
 void visit(CompoundBinary<?,?,?> host)
           
 void visit(CompoundGenerator<?> host)
           
 void visit(CompoundUnary<?,?> host)
           
 void visit(ConditionalBinary<?,?,?> host)
           
 void visit(ConditionalGenerator<?> host)
           
 void visit(ConditionalUnary<?,?> host)
           
 void visit(Distribute<?,?,?,?,?> host)
           
 void visit(Generate<?,?> host)
           
 void visit(Generate1st<?,?,?> host)
           
 void visit(Generate2nd<?,?,?> host)
           
 void visit(GenerateBinary<?,?,?> host)
           
 void visit(GenerateUnary<?,?> host)
           
 void visit(OrBinary<?,?> host)
           
 void visit(OrGenerator host)
           
 void visit(OrUnary<?> host)
           
 
Methods inherited from class net.sf.jga.fn.AbstractVisitor
visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jga.fn.Visitor
visit
 

Constructor Detail

AdaptorVisitor

public AdaptorVisitor()
Method Detail

visit

public void visit(All<?> host)
Specified by:
visit in interface All.Visitor

visit

public void visit(AndBinary<?,?> host)
Specified by:
visit in interface AndBinary.Visitor

visit

public void visit(AndGenerator host)
Specified by:
visit in interface AndGenerator.Visitor

visit

public void visit(AndUnary<?> host)
Specified by:
visit in interface AndUnary.Visitor

visit

public void visit(Any<?> host)
Specified by:
visit in interface Any.Visitor

visit

public void visit(ApplyBinary<?,?> host)
Specified by:
visit in interface ApplyBinary.Visitor

visit

public void visit(ApplyGenerator host)
Specified by:
visit in interface ApplyGenerator.Visitor

visit

public void visit(ApplyUnary<?> host)
Specified by:
visit in interface ApplyUnary.Visitor

visit

public void visit(Bind<?,?> host)
Specified by:
visit in interface Bind.Visitor

visit

public void visit(Bind1st<?,?,?> host)
Specified by:
visit in interface Bind1st.Visitor

visit

public void visit(Bind2nd<?,?,?> host)
Specified by:
visit in interface Bind2nd.Visitor

visit

public void visit(ChainBinary<?,?,?,?> host)
Specified by:
visit in interface ChainBinary.Visitor

visit

public void visit(ChainUnary<?,?,?> host)
Specified by:
visit in interface ChainUnary.Visitor

visit

public void visit(ComposeBinary<?,?,?,?,?> host)
Specified by:
visit in interface ComposeBinary.Visitor

visit

public void visit(ComposeUnary<?,?,?,?> host)
Specified by:
visit in interface ComposeUnary.Visitor

visit

public void visit(CompoundBinary<?,?,?> host)
Specified by:
visit in interface CompoundBinary.Visitor

visit

public void visit(CompoundGenerator<?> host)
Specified by:
visit in interface CompoundGenerator.Visitor

visit

public void visit(CompoundUnary<?,?> host)
Specified by:
visit in interface CompoundUnary.Visitor

visit

public void visit(ConditionalBinary<?,?,?> host)
Specified by:
visit in interface ConditionalBinary.Visitor

visit

public void visit(ConditionalGenerator<?> host)
Specified by:
visit in interface ConditionalGenerator.Visitor

visit

public void visit(ConditionalUnary<?,?> host)
Specified by:
visit in interface ConditionalUnary.Visitor

visit

public void visit(Distribute<?,?,?,?,?> host)
Specified by:
visit in interface Distribute.Visitor

visit

public void visit(Generate<?,?> host)
Specified by:
visit in interface Generate.Visitor

visit

public void visit(Generate1st<?,?,?> host)
Specified by:
visit in interface Generate1st.Visitor

visit

public void visit(Generate2nd<?,?,?> host)
Specified by:
visit in interface Generate2nd.Visitor

visit

public void visit(GenerateUnary<?,?> host)
Specified by:
visit in interface GenerateUnary.Visitor

visit

public void visit(GenerateBinary<?,?,?> host)
Specified by:
visit in interface GenerateBinary.Visitor

visit

public void visit(OrBinary<?,?> host)
Specified by:
visit in interface OrBinary.Visitor

visit

public void visit(OrGenerator host)
Specified by:
visit in interface OrGenerator.Visitor

visit

public void visit(OrUnary<?> host)
Specified by:
visit in interface OrUnary.Visitor


Copyright © 2002-2006 David A. Hall. All Rights Reserved.