net.sourceforge.cilib.container.visitor
Class PostOrderVisitorDecorator<E>
java.lang.Object
net.sourceforge.cilib.container.visitor.Visitor<E>
net.sourceforge.cilib.container.visitor.PrePostVisitor<E>
net.sourceforge.cilib.container.visitor.PostOrderVisitorDecorator<E>
- Type Parameters:
E
- The type to be visited.
public class PostOrderVisitorDecorator<E>
- extends PrePostVisitor<E>
Simple decorator class that wraps the needed Visitor
to make it compatible
with Post-Order Traversals in the Containers defined.
- Author:
- Gary Pampara
Method Summary |
void |
postVisit(E o)
Post-visit the given element. |
Methods inherited from class net.sourceforge.cilib.container.visitor.Visitor |
isDone |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostOrderVisitorDecorator
public PostOrderVisitorDecorator(Visitor<E> v)
- Create a new instance of PostOrderVisitorDecorator, decorating the
provided Visitor instance.
- Parameters:
v
- The Visitor to decorate.
postVisit
public void postVisit(E o)
- Post-visit the given element.
- Overrides:
postVisit
in class PrePostVisitor<E>
- Parameters:
o
- The element to post visit.
Copyright © 2009 CIRG. All Rights Reserved.