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_GetStaticFieldID

This function returns the field ID (Java handle) for a static field of a class.It is equivalent to the JNI function GetStaticFieldID.


Call

CALL 'JCI_GetStaticFieldID' USING cObj fName fSig fID

cObj

Class object

fName

Name of the field

fSig

Signature of the field

fID

Field ID returned by the function


Arguments

cObj

Data field of the type JCI-object

Object of the class in which the method is to be searched for.

fName

Structure of the type Cobvar
Name of the field which is to be searched for.
Trailing spaces at the end of the text are ignored.

fSig

Structure of the type Cobvar
Signature of the field which is to be searched for.
Trailing spaces at the end of the text are ignored.

fID

Data field of the type JCI-handle
After the function has been successfully executed, the field contains the field ID of the field being searched for.
In the event of an error, the value JCI-NULL is returned.


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-EARGUMENT

cObj is not a class object.

JCI-RET-ENOTFOUND

The field could not be found.


Exceptions

The exceptions generated by the function correspond to those of the JNI function GetStaticFieldID.


Notes

The field is identified by the name and the signature. The signature can be received by the statement,

javap -s <class-name>

the <class-name> being the name of the class identified by cObj.