SomFindSMethodOK: Difference between revisions
Created page with "{{DISPLAYTITLE:somFindSMethodOk}} This method finds the method procedure for a static method. Not generally overridden. For backward compatibility, this method does not take ..." |
mNo edit summary |
||
Line 4: | Line 4: | ||
For backward compatibility, this method does not take an Environment parameter. | For backward compatibility, this method does not take an Environment parameter. | ||
; Original Class : [[SOMClass]] | ;Original Class : [[SOMClass]] | ||
==Syntax== | ==Syntax== | ||
Line 10: | Line 10: | ||
==Parameters== | ==Parameters== | ||
; | ;receiver (SOMClass) : A pointer to a class object. | ||
;methodId (somId) : A somId representing the name of the desired method. | |||
; methodId (somId) : A somId representing the name of the desired method. | |||
==Return Code== | ==Return Code== | ||
; | ;rc (somMethodPtr) : This method returns a pointer to the method procedure that supports the specified method for the class. | ||
==Remarks== | ==Remarks== | ||
Line 26: | Line 25: | ||
==Related== | ==Related== | ||
;Methods | |||
* [[somFindMethod]] | * [[somFindMethod]] | ||
* [[somFindMethodOk]] | * [[somFindMethodOk]] | ||
[[Category:SOMClass]] | [[Category:SOMClass]] |
Latest revision as of 18:35, 12 October 2022
This method finds the method procedure for a static method. Not generally overridden.
For backward compatibility, this method does not take an Environment parameter.
- Original Class
- SOMClass
Syntax
somMethodPtr somFindSMethodOk (SOMClass receiver, somId methodId)
Parameters
- receiver (SOMClass)
- A pointer to a class object.
- methodId (somId)
- A somId representing the name of the desired method.
Return Code
- rc (somMethodPtr)
- This method returns a pointer to the method procedure that supports the specified method for the class.
Remarks
This method performs name-lookup resolution in a similar fashion to somFindMethod and somFindMethodOK, but are restricted to static but is restricted to static methods. See the description of somFindMethod for a discussion of name-lookup method resolution. Because this method is restricted to resolving static methods, its interface is slightly different from the somFindMethod interface; a method procedure pointer is returned when lookup is successful; otherwise NULL is returned.
This method is identical to somFindSMethod, except that an error is raised if the indicated static method is not defined for the receiving class, and execution is halted.
Example Code
See the somFindMethod method example.
Related
- Methods