 | IJavaObjectInvokeWithSignature(String, String) Method |
Invokes an instance method on the underlying JVM object using an explicit JNI signature
and no arguments.
Namespace: MASES.JCOBridge.C2JBridge.JVMInteropAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
SyntaxObject InvokeWithSignature(
string methodName,
string signature
)
Function InvokeWithSignature (
methodName As String,
signature As String
) As Object
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.
Return Value
Object
The return value of the method as a boxed
Object,
or
if the method returns
void.
Exceptions| Exception | Condition |
|---|
| MissingMethodException |
Thrown if the method identified by methodName and signature
is not found on the underlying Java class.
|
Remarks
Use this overload when method overload resolution by argument types alone is ambiguous,
or when you want to pin the call to a specific Java method descriptor.
The JNI signature format follows the standard Java descriptor notation,
e.g. "()V" for a void method with no parameters.
See Also