com.iotabits.examples.revisitor
Class GraphNode.GraphPrinter

java.lang.Object
  extended bycom.iotabits.revisitor.BasicReflectiveVisitor
      extended bycom.iotabits.examples.revisitor.GraphNode.GraphPrinter
All Implemented Interfaces:
iReflectiveVisitor
Enclosing class:
GraphNode

public static class GraphNode.GraphPrinter
extends BasicReflectiveVisitor

Our simple visitor.


Field Summary
 
Fields inherited from class com.iotabits.revisitor.BasicReflectiveVisitor
VISIT_METHOD_NAME
 
Constructor Summary
GraphNode.GraphPrinter()
           
 
Method Summary
protected  void defaultVisit(java.lang.Object data)
          Override this to provide different default behavior for the default visit method.
 void visit(java.lang.Float floatData)
           
 void visit(GraphNode[] children)
           
 void visit(java.lang.Integer intData)
           
 void visit(java.lang.String strData)
           
 
Methods inherited from class com.iotabits.revisitor.BasicReflectiveVisitor
callAccept, dispatchToVisit, findMethod, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphNode.GraphPrinter

public GraphNode.GraphPrinter()
Method Detail

visit

public void visit(GraphNode[] children)
           throws java.lang.Exception
Throws:
java.lang.Exception

visit

public void visit(java.lang.String strData)
           throws java.lang.Exception
Throws:
java.lang.Exception

visit

public void visit(java.lang.Integer intData)
           throws java.lang.Exception
Throws:
java.lang.Exception

visit

public void visit(java.lang.Float floatData)
           throws java.lang.Exception
Throws:
java.lang.Exception

defaultVisit

protected void defaultVisit(java.lang.Object data)
                     throws java.lang.Exception
Description copied from class: BasicReflectiveVisitor
Override this to provide different default behavior for the default visit method.

Overrides:
defaultVisit in class BasicReflectiveVisitor
Parameters:
data -
Throws:
java.lang.Exception