com.iotabits.examples.revisitor
Class GraphNode.GraphPrinter
java.lang.Object
com.iotabits.revisitor.BasicReflectiveVisitor
com.iotabits.examples.revisitor.GraphNode.GraphPrinter
- All Implemented Interfaces:
- iReflectiveVisitor
- Enclosing class:
- GraphNode
- public static class GraphNode.GraphPrinter
- extends BasicReflectiveVisitor
Our simple visitor.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphNode.GraphPrinter
public GraphNode.GraphPrinter()
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