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
MethodCall
protected MethodCall(String className)
throws ClassNotFoundException
MethodCall
public MethodCall(String className,
String methodName,
Object callingObject)
throws ClassNotFoundException,
NoSuchMethodException
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