| java.lang.Object net.sf.jga.fn.AbstractVisitor net.sf.jga.fn.AdaptorVisitor
AdaptorVisitor | 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(Code) | | 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 |
|
|