public class ChannelObjectMethodInvoker
extends java.lang.Object
| Constructor and Description |
|---|
ChannelObjectMethodInvoker() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
invokeConstructor(IChannel channel,
java.lang.String className,
java.lang.Class[] signature,
java.lang.Object[] args)
Invokes a constructor (by using reflection).
|
static java.lang.Object |
invokeMethod(IChannelObject channelObject,
java.lang.String method,
java.lang.String signature,
java.lang.Object[] args)
Invokes a method (by using reflection) on an object that uses channels.
|
static java.lang.Object |
invokeMethod(IChannel channel,
java.lang.Object object,
java.lang.String method,
java.lang.String signature,
java.lang.Object[] args)
Invokes a method (by using reflection) on an object that uses channels.
|
static java.lang.Object |
invokeStaticMethod(IChannel channel,
java.lang.String className,
java.lang.String method,
java.lang.Class[] signature,
java.lang.Object[] args)
Invokes a static method (by using reflection) on an object that uses channels.
|
public static java.lang.Object invokeMethod(IChannelObject channelObject, java.lang.String method, java.lang.String signature, java.lang.Object[] args)
channelObject - The object whose method is to be invoked.method - The method to invoke.signature - The JNI signature of the paramaters of the
method to be invoked.args - An array that contains the parameters of the
the method.public static java.lang.Object invokeMethod(IChannel channel, java.lang.Object object, java.lang.String method, java.lang.String signature, java.lang.Object[] args)
channel - The channel on which we should invoke the objectobject - The object whose method is to be invoked.method - The method to invoke.signature - The JNI signature of the paramaters of the
method to be invoked.args - An array that contains the parameters of the
the method.public static java.lang.Object invokeStaticMethod(IChannel channel, java.lang.String className, java.lang.String method, java.lang.Class[] signature, java.lang.Object[] args)
channel - The channel on which the method should be invoked.className - The name of the class whose method is to be invoked.method - The name of the method to invoke.signature - An array of class objects that represent
the parameters of the method.args - An array that contains the arguments of the
the method.public static java.lang.Object invokeConstructor(IChannel channel, java.lang.String className, java.lang.Class[] signature, java.lang.Object[] args)
channel - The channel on which the constructor should be invoked.method - The method to invoke.signature - An array of class objects that represent
the parameters of the constructor.args - An array that contains the arguments of the
the constructor.