Top
NetCOBOL V11.0 J Adapter Class GeneratorUser's Guide
FUJITSU Software

1.2 What the J Adapter Class Generator Can Do

Using adapter classes generated by the J adapter class generator enables the following types of operation for Java.

To COBOL programs, Java objects seem to be COBOL objects. Therefore, Java objects can be handled the same way as ordinary COBOL objects.

Accessing a class variable

Access to a public class variable (static field) declared in a Java class is enabled. COBOL handles it as a factory property.

Invoking a class method

A public class method (static method) declared in a Java class can be invoked. COBOL handles it as a factory method.

Generating an instance object (invoking a constructor)

Invoking a constructor can create a Java instance object. COBOL handles it as a factory method that returns an object.

Accessing an instance variable

Access to a public instance variable (non-static field) of a Java instance object is enabled. COBOL handles it as an object property.

Invoking an instance method

A public instance method (non-static method) of a Java instance object can be invoked. COBOL handles it as an object method.

Receiving an exception

An exception caused when a class method, constructor, or instance method is invoked can be trapped to perform error processing. COBOL uses the USE statement to receive an exception object.