Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
This function calls an instance method of a predefined class.
It is equivalent to the JNI functions CallNonvirtual<type>Method
. However, it also offers the option of transferring or receiving strings directly.
Call
CALL 'JCI_CallNonvirtualMethod' USING
obj cObj
mID arg res
obj | Instance object |
cObj | Object of the class in which the method is defined. |
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. |
cObj | Data field of the type JCI-object
Object of the class whose 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 function JCI_GetMethodID for the cObj class. This class must match the class of the obj object or of 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 or cObj is JCI-NULL
.
All other values as in
JCI_CallStaticMethod
.
Exceptions
All exceptions which were generated by the called method.