Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

JCI_CallMethod

This function calls an instance method.
It is equivalent to the JNI functions Call<type>Method. However, it also offers the option of transferring or receiving strings directly.


Call

CALL 'JCI_CallMethod' USING obj mID arg res

obj

Instance object

mID

Method ID

arg

Method arguments

res

Method result


Arguments

obj

Data field of the type JCI-object
Instance object for which the method is to be called.

mID

Data field of the type JCI-handle
ID of the method which is to be called. The method ID must be obtained by calling the JCI_GetStaticMethodID function for the class of the object obj or one of its upper classes.

arg

A structure of the form MethodArg
Description of the arguments for the method call (see section "Arguments and event values of Java methods").

res

A structure of the form MethodRes
Description of the return value for the method call and error information (see section "Arguments and event values of Java methods"). If the return value of the method is a NULL object, the length field of the target structure is set to 0 for the types RES-ANUM-STRING and RES-NAT-STRING, and the text area remains unchanged.


Return value (RETURN-CODE)

JCI-RET-ENULLOBJ

obj is JCI-NULL.

All other values as in JCI_CallStaticMethod.


Exceptions

All exceptions which were generated by the called method.