7.91.1 MTHROUTINE Parameters

NAME

DESC

OPTIONS

ACCESS

HELP

NAME

The name of the method routine. This name can be up to 256 characters long.

DESC

Use the DESC parameter to write a brief description for the method. It can be 40 characters long.

OPTIONS

The value of the OPTIONS parameter determines whether a method inherited from an ancestor can be redefined:

*ABSTRACT

Introduces a new method declaration that does not have an implementation. Instead, derived classes are required to provide their own implementation by overriding the method using the *REDEFINE option.

*CONSTRUCTOR

Constructor methods are invoked when an instance of the object is being created.

*FINAL

The method cannot be redefined by components that inherited from the component defining the method.

*RECEIVES_MESSAGES

Messages already on the message queue will be available within the method.

*REDEFINE

The method is redefining (overriding) the implementation of a method in a component's ancestor.

*REQUIRED

In conjunction with *Constructor. *REQUIRED specifies that a constructor method must be invoked.

*RETURNS_MESSAGES

Messages generated within the method will remain on the message queue and will be available in the calling routine.

 

ACCESS

This parameter supports one of the options from the list *PUBLIC, *PROTECT and *PRIVATE.

HELP

Use the Help parameter to write a longer description for a method. The help text can be viewed using the Features option of the Help menu. It can be 250 characters long.