Chapter 5. Adapter Class Reference 47
FJ-JAVA-BASE class The FJ-JAVA-BASE class is the super class of every adapter class.
The FJ-JAVA-BASE class has the methods shown below.
Method name Type Function
J-NARROW Factory Assigns an object to a subclass.
J-DUPLICATE Object Duplicates an adapter object.
J-EQUALS Object Checks whether the Java objects indicated by two adapter
objects are equal.
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.
J-DUPLICATE Method (object method)
Explanation
This method duplicates an adapter object. It duplicates no Java object. A duplicated
adapter object points to the same Java object as the original adapter object.
Syntax
INVOKE
anObject
"J-DUPLICATE" RETURNING
duplicatedObject
Parameter and return value
• anObject (attribute: OBJECT REFERENCE adapter class)
Specifies the adapter object to be duplicated.
• duplicatedObject (attribute: OBJECT REFERENCE CLASS OF SELF)
Returns the duplicated object.