to.etc.iocular.container
Class MethodInvoker

java.lang.Object
  extended by to.etc.iocular.container.MethodInvoker

public final class MethodInvoker
extends java.lang.Object

Defines a method invocation. FIXME This should also contain a reference to the OBJECT this call is to be placed on!!!

Author:
Frits Jalvingh Created on May 25, 2009

Constructor Summary
MethodInvoker(java.lang.reflect.Method method, ComponentRef thisref, ComponentRef[] actuals)
           
 
Method Summary
 void dump(IndentWriter iw)
           
 int getScore()
           
 java.lang.Object invoke(BasicContainer bc, java.lang.Object selfobject)
          Actually invoke the method on some thingy.
 java.lang.Object invoke(java.lang.Object thisobject, BasicContainer bc, java.lang.Object selfobject)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvoker

public MethodInvoker(java.lang.reflect.Method method,
                     ComponentRef thisref,
                     ComponentRef[] actuals)
Method Detail

getScore

public int getScore()

invoke

@Deprecated
public java.lang.Object invoke(java.lang.Object thisobject,
                                          BasicContainer bc,
                                          java.lang.Object selfobject)
                        throws java.lang.Exception
Deprecated. 

Actually invoke the method on some thingy.

Parameters:
bc -
Returns:
Throws:
java.lang.Exception

invoke

public java.lang.Object invoke(BasicContainer bc,
                               java.lang.Object selfobject)
                        throws java.lang.Exception
Actually invoke the method on some thingy.

Parameters:
bc -
Returns:
Throws:
java.lang.Exception

dump

public void dump(IndentWriter iw)
          throws java.io.IOException
Throws:
java.io.IOException