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

5.2.1 J-NARROW Method (factory method)

Explanation

This method assigns an adapter object to a subclass.

Syntax

INVOKE class-name "J-NARROW" USING object-1 RETURNING object-2

Parameter and return value

class-name:

Specifies the class name of assignment target data.

object-1 (attribute: OBJECT REFERENCE FJ-JAVA-BASE)

Specifies the object to be assigned.

object-2 (attribute: OBJECT REFERENCE SELF)

Returns the object that was converted into the assignment target class.