org.onemind.commons.java.pattern
Class DynamicVisitor.MethodNodeHandler

java.lang.Object
  extended byorg.onemind.commons.java.pattern.DynamicVisitor.MethodNodeHandler
All Implemented Interfaces:
DynamicVisitor.NodeHandler
Enclosing class:
DynamicVisitor

protected class DynamicVisitor.MethodNodeHandler
extends java.lang.Object
implements DynamicVisitor.NodeHandler

A handler use reflection to invoke given method for visiting


Constructor Summary
DynamicVisitor.MethodNodeHandler(java.lang.reflect.Method method)
          Constructor
 
Method Summary
 java.lang.Object handleNode(java.lang.Object node, java.lang.Object[] data)
          Handle node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicVisitor.MethodNodeHandler

public DynamicVisitor.MethodNodeHandler(java.lang.reflect.Method method)
Constructor

Method Detail

handleNode

public java.lang.Object handleNode(java.lang.Object node,
                                   java.lang.Object[] data)
                            throws java.lang.Exception
Handle node

Specified by:
handleNode in interface DynamicVisitor.NodeHandler
Parameters:
node -
data -
Throws:
java.lang.Exception


Copyright © 2004-2006 . All Rights Reserved.