EGL library javaLib

The javaLib functions access local Java™ objects and classes through your generated Java code.

The Java access functions are listed in the following table.

Function Description
result = getField (identifierOrClass, field) Returns the value of a specified field of a specified object or class.
result = invoke (identifierOrClass, method[, argument]) Invokes a method on a Java object or class and can return a value.
result = isNull (identifier) Returns a value (1 for true, 0 for false) to indicate whether a specified identifier refers to a null object.
result = isObjID (identifier) Returns a value (1 for true, 0 for false) to indicate whether a specified identifier is in the object space.
result = qualifiedTypeName(identifier) Returns the fully qualified name of the class of an object in the object space.
remove (identifier) Removes the specified identifier from the object space and, if no other identifiers refer to the object, removes the object.
removeAll () Removes all identifiers and objects from the object space.
setField (identifierOrClass, field, value) Sets the value of a field in a Java object or class.
store (storeId, identifierOrClass, method{ ,argument}) Invokes a method and places the returned object (or null) into the object space, along with a specified identifier.
storeCopy (sourceId, targetID) Creates a new identifier based on another in the object space, so that both refer to the same object.
storeField (storeId, identifierOrClass, field) Places the value of a class field or object field into the object space.
storeNew(storeId, class{ ,argument}) Invokes the constructor of a class and places the new object into the object space.

Compatibility

Table 1. Compatibility considerations for javaLib
Platform Issue
COBOL generation None of the javaLib functions are supported.

Feedback