jgb.builder.utils
Class MethodCall

java.lang.Object
  |
  +--jgb.builder.utils.ParametersAccumulator
        |
        +--jgb.builder.utils.MethodCall

public class MethodCall
extends ParametersAccumulator

An object that accumulates parameters until such time the caller is ready to call the specified method. When the caller is ready to call the method, it calls call() to get a reference to the return value of the method. If the named method returns void, call() returns null (just like Method.invoke(Object, Object[])).

Since:
0.2a
Author:
Francois Beausoleil, fbos@users.sourceforge.net

Constructor Summary
protected MethodCall(String className)
           
  MethodCall(String className, String methodName, Object callingObject)
           
 
Method Summary
 Object call()
           
 Class getCalledClass()
           
 String getMethodName()
           
 Class getReturnValueType()
           
 
Methods inherited from class jgb.builder.utils.ParametersAccumulator
addParameter, createParametersArray, createValuesArray, getParamCount, getParameterTypes, getParameterValues, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodCall

protected MethodCall(String className)
              throws ClassNotFoundException

MethodCall

public MethodCall(String className,
                  String methodName,
                  Object callingObject)
           throws ClassNotFoundException,
                  NoSuchMethodException
Method Detail

getReturnValueType

public Class getReturnValueType()

getMethodName

public String getMethodName()

getCalledClass

public Class getCalledClass()

call

public Object call()
            throws NoSuchMethodException,
                   MethodCallException
NoSuchMethodException
MethodCallException


Copyright 2002-2003, François Beausoleil, All Rights Reserved