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 |
fID | Data field of the type |
res | A structure of the form |
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.