sysLib.javaType

The system function sysLib.javaType returns the fully qualified name of the class of an object in the EGL Java object space. sysLib.javaType is one of several Java access functions.


sysLib.javaType syntax diagram

returnItem

The return item is required and must be of type CHAR, MBCHAR, or UNICODE--

  • If the item is of type MBCHAR or UNICODE, the received value is always appropriate

  • If the item is of type CHAR, problems can arise if the received value includes characters that correspond to DBCHAR characters

For details on mismatched lengths, see Assignments.

identifier

An identifier that refers to an object in the object space.

This argument is either a string literal or an item of type CHAR, DBCHAR, MBCHAR, or UNICODE. The identifier must be cast to objId, as in a later example. EGL strips single- and double-byte blanks from the beginning and end of the argument value, which is case sensitive.

An example is as follows:

  myItem = sysLib.javaType( (objId)"myId" );

An error during processing of sysLib.javaType can set sysVar.errorCode to a value listed in the next table.

Value in sysVar.errorCode Description
00001001 The object was null, or the specified identifier was not in the object space

Related concepts
Java access functions

Related tasks
Syntax diagram

Related reference
Java access (system words)
sysLib.java
sysLib.javaGetField
sysLib.javaIsNull
sysLib.javaIsObjID
sysLib.javaRemove
sysLib.javaRemoveAll
sysLib.javaSetField
sysLib.javaStore
sysLib.javaStoreCopy
sysLib.javaStoreField
sysLib.javaStoreNew
sysLib.javaType