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_GetStaticField

This function returns the value of a static field of a class.
It is equivalent to the JNI functions GetStatic<type>Field. However, it also offers the option of obtaining strings directly.


Call

CALL 'JCI_GetStaticField' USING cObj fID res

cObj

Class object

fID

Field ID

res

Result


Arguments

cObj

Data field of the type JCI-object
Class object whose field content is to be returned.

fID

Data field of the type JCI-handle
ID of the field whose content is to be returned. The field ID must be obtained by calling the function JCI_GetStaticFieldID for the cObj class.

res

A structure of the form MethodRes
Description of the return value for the field content and error information (see section "Arguments and event values of Java methods"). If the content of the field 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-OK

The call was successful.

JCI-RET-ENOVM

No Java VM has been started.

JCI-RET-ENULLOBJ

cObj is JCI-NULL.

JCI-RET-ENULLID

fID is JCI-NULL.

JCI-RET-EARGUMENT

cObj is not a class object.

JCI-RET-ERESVERS

The statically generated version number in res is invalid (possibly overwritten).

JCI-RET-ERESTYPE

The value of the ResType field is invalid.

JCI-RET-ERESCONV

An error occurred while the result was being converted.
The ResErrCode field contains a more precise error code.