Example 2
The Java™ Integer class contains
a static method called getInteger, which accepts String and
Integer objects as parameters, and returns an Integer object. It is
declared in Java as follows:
static Integer Integer.getInteger(String, Integer)
This method would be prototyped as follows:
D getint PR O EXTPROC(*JAVA:
D 'java.lang.Integer':
D 'getInteger')
D CLASS(*JAVA:'java.lang.Integer')
D STATIC
D string O CLASS(*JAVA:'java.lang.String') CONST
D num O CLASS(*JAVA:'java.lang.Integer') CONST
This method accepts two objects as parameters. O is coded in column 40 of the D-specification and the CLASS keyword specifies the class of each object parameter. Because both parameters are input-only, the CONST keyword is specified.