OVERONE DotNetJ client program reference

JavaObject.Invoke Method (String, String[], Object[])

Invokes a method on the Java object with parameters.

public object Invoke(
   string methodName,
   string[] argTypes,
   object[] argVals
);

Parameters

methodName
The name of the method to invoke on the Java object.
argTypes
The arguments type names. Use Java class names, or predefined type names with ParameterTypeNames.
argVals
The arguments.

Return Value

The result of the method call on the Java object. If the Java method returns something like a primitive type, a .NET primitive type is returned, otherwise a JavaThing is returned, that can be casted to a OVERONE.DotNet.JavaObject or a JavaArray.

See Also

JavaObject Class | JavaObject Members | OVERONE.DotNetJ Namespace | JavaObject.Invoke Overload List