Chapter Contents |
Previous |
Next |
Object Class: _getMethods |
Syntax | |
Details |
Syntax |
return = objectName._getMethods( metadata ); |
return = objectName._getMethods( metadata, inherited ); |
Argument | Type | Use | Description |
---|---|---|---|
return | Numeric | Return | returns a value indicating whether the methods were successfully retrieved: 0 if successful, 1 if not successful |
metadata | List | Update | specifies the identifier of a list that when returned is filled with sublists containing method metadata for each method |
inherited | Character | Input | specifies whether inherited methods are returned in the metadata list: 'Yes' indicates INHERITED methods will be included. |
Details |
If you run _getMethods against an instance of a class, the method only returns the PUBLIC methods associated with the object. If you run _getMethods on a class ID, the method returns all methods except any PRIVATE methods the parent may have.
For methods that support multiple signatures, _getMethods returns a separate sublist for each signature. For example, if a method called someMethod has two signatures, _getMethods returns two sublists named someMethod, but each has a different signature and unique method ID.
_getMethods does not return methods from an ancestor class that are out of scope (that is, defined as private or protected) for the calling object or class. You can use _getIMethodList if you need to return all methods regardless of scope.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.