The Method.Directive class


The Method.Directive class


The Method.Directive class creates objects which represent the ::METHOD directives of a ooRexx program.

Superclass: Rexx.Directive

Methods of the Method.Directive class

delegateName

delegateName

Returns the name of the object that should act as a delegate (a string element or a symbol element), or .Nil if the DELEGATE keyword has not been used when specifying this directive.

extends (Experimental)

extends

Returns the possibly namespace-qualified name of the class this method is extending, as a two-element array. The first item of the array is a symbol element containing the namespace, or .Nil when no namespace was specified. The second item is a string element or a symbol element containing the class to be extended. Returns .Nil when the EXTENDS keyword was not specified.

external

external

Returns a string containing the spec that identifies the method in an external library, or .Nil if the method is not external.

isAbstract

isAbstract

Returns .true when the method is an abstract method, otherwise returns .false.

isAttribute

isAttribute

Returns .true when the method is an attribute method, otherwise returns .false.

isClassMethod

isClassMethod

Returns .true when the method is a class method. Otherwise returns .false.

Note: We are using isClassMethod instead of class because a built-in method named class already exists.

isGuarded

isGuarded

Returns .true when the method is a guarded method, otherwise returns .false.

isPackage

isPackage

Returns .true when the method is a package-scope method, otherwise returns .false.

isPrivate

isPrivate

Returns .true when the method is a private method, otherwise returns .false.

isProtected

isProtected

Returns .true when the method is a protected method. Returns .false for unprotected methods.

method

method

Returns the Rexx.Method object associated to this directive.

method=

methodEquals

Assigns a value that can be later retrieved by using the method object.

name

name

Returns the name of the method, as a string element or a symbol element.

overrides (Experimental)

overrides

Returns the possibly namespace-qualified name of the class this method is overriding, as a two-element array. The first item of the array is a symbol element containing the namespace, or .Nil when no namespace was specified. The second item is a string element or a symbol element containing the name of the class to be overrided. Returns .Nil when the OVERRIDES keyword was not specified.