Click or drag to resize

IJavaObjectInvokeWithSignature(String, String, Object) Method

Invokes an instance method on the underlying JVM object using an explicit JNI signature and a variable-length argument list.

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
Object InvokeWithSignature(
	string methodName,
	string signature,
	params Object[] args
)

Parameters

methodName  String
The name of the Java instance method to invoke.
signature  String
The JNI method descriptor string that uniquely identifies the target method.
args  Object
The arguments to pass to the method. Each element must be compatible with the corresponding Java parameter type declared in signature.

Return Value

Object
The return value of the method as a boxed Object, or if the method returns void.
Exceptions
ExceptionCondition
MissingMethodException Thrown if the method identified by methodName and signature is not found on the underlying Java class.
Remarks
The explicit signature is resolved at the JNI level before dispatching the call, so this overload is suitable when multiple Java overloads share the same name and the bridge cannot unambiguously select the right one from the argument types alone. For a fixed, known number of arguments (0–10), prefer the strongly-typed overloads to avoid the overhead of array allocation.
See Also