net.sourceforge.cilib.container.visitor
Class PostOrderVisitorDecorator<E>

java.lang.Object
  extended by net.sourceforge.cilib.container.visitor.Visitor<E>
      extended by net.sourceforge.cilib.container.visitor.PrePostVisitor<E>
          extended by 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

Constructor Summary
PostOrderVisitorDecorator(Visitor<E> v)
          Create a new instance of PostOrderVisitorDecorator, decorating the provided Visitor instance.
 
Method Summary
 void postVisit(E o)
          Post-visit the given element.
 
Methods inherited from class net.sourceforge.cilib.container.visitor.PrePostVisitor
preVisit, visit
 
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
 

Constructor Detail

PostOrderVisitorDecorator

public PostOrderVisitorDecorator(Visitor<E> v)
Create a new instance of PostOrderVisitorDecorator, decorating the provided Visitor instance.

Parameters:
v - The Visitor to decorate.
Method Detail

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.