jasi.sim.user.util
Class PrintVisitor<T>

java.lang.Object
  extended by jasi.sim.user.util.PrintVisitor<T>
Type Parameters:
T - The visited object class
All Implemented Interfaces:
Visitor<T>

public class PrintVisitor<T>
extends java.lang.Object
implements Visitor<T>

A visitor, which prints all visited.


Constructor Summary
PrintVisitor()
          Constructor for PrintVisitor.
 
Method Summary
 boolean isDone()
          All visited will be visited.
 void visit(java.lang.Object visitable)
          Print the visited.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintVisitor

public PrintVisitor()
Constructor for PrintVisitor.

Method Detail

visit

public void visit(java.lang.Object visitable)
Print the visited.

Specified by:
visit in interface Visitor<T>
Parameters:
visitable - The visited object.
See Also:
Visitor.isDone()

isDone

public boolean isDone()
All visited will be visited.

Specified by:
isDone in interface Visitor<T>
Returns:
Always false.
See Also:
Visitor.isDone()