RePast
v. 2.0

uchicago.src.reflector
Class Invoker

java.lang.Object
  |
  +--uchicago.src.reflector.Invoker
Direct Known Subclasses:
BooleanArgInvoker, ByteArgInvoker, DoubleArgInvoker, FloatArgInvoker, IntegerArgInvoker, LongArgInvoker, ObjectArgInvoker, ShortArgInvoker, StringArgInvoker

public abstract class Invoker
extends Object

Abstract super class for specialized invoker subclasses. Sub classes are specialized according the the parameter type. Intended to invoke methods having a single argument, and no return value. Especially setXXX accessor methods.


Constructor Summary
Invoker(Object o, Method method, String param)
           
 
Method Summary
protected  void check()
           
 void execute()
           
protected abstract  void invoke()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Invoker

public Invoker(Object o,
               Method method,
               String param)
Method Detail

execute

public void execute()
             throws InvokerException,
                    InvocationTargetException,
                    IllegalAccessException
InvokerException
InvocationTargetException
IllegalAccessException

check

protected void check()
              throws InvokerException
InvokerException

invoke

protected abstract void invoke()
                        throws InvocationTargetException,
                               IllegalAccessException
InvocationTargetException
IllegalAccessException

RePast
v. 2.0

Bug reports and feature requests to RePast