info.jedi
Class Remote
java.lang.Object
|
+--info.jedi.Remote
- public class Remote
- extends java.lang.Object
This class provides a library function to call a method on a given object.
- See Also:
RMCHandler
Method Summary |
static java.lang.Object |
staticCallFunction(java.lang.Object callee,
java.lang.String methodName,
java.util.Vector arguments)
Calls a named method on an object with the passed arguments. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Remote
public Remote()
staticCallFunction
public static java.lang.Object staticCallFunction(java.lang.Object callee,
java.lang.String methodName,
java.util.Vector arguments)
throws java.lang.NoSuchMethodException,
java.lang.SecurityException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException,
java.lang.NullPointerException,
java.lang.IllegalAccessException
- Calls a named method on an object with the passed arguments.
- Parameters:
callee
- The Object
to call the method on.methodName
- The simple String
name of the method.arguments
- A Vector
containing the arguments.- Returns:
- the return value of the method, if it has one.
null
otherwise - Throws:
- java.lang.NoSuchMethodException - if a function with the given
methodName and args is not found.
- java.lang.SecurityException - if the requested method is not callable
(because it is protected, private, etc.).
- java.lang.NullPointerException - if a null argument is passed in
args
for a primitive type argument.- java.lang.IllegalAccessException - same as SecurityException.
- java.lang.reflect.InvocationTargetException - if the called method returns an
exception, it is wrapped up in this exception and returned.