SomGetMethodDescriptor: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:somGetMethodDescriptor}} This method returns the method descriptor for a method. Not generally overridden. For backward compatibility, this method does not tak..." |
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== | ||
somId somGetMethodDescriptor (SOMClass receiver, somId methodId) | somId somGetMethodDescriptor (SOMClass receiver, somId methodId) | ||
==Parameters== | ==Parameters== | ||
; | ;receiver (SOMClass): A pointer to a SOMClass. | ||
; methodId (somId) : A somId method descriptor. | ;methodId (somId): A somId method descriptor. | ||
==Return Code== | ==Return Code== | ||
; | ;rc (somId): Returns a somId method descriptor. | ||
==Remarks== | ==Remarks== | ||
This method returns the method descriptor for a specified method of a class. (A method descriptor is a somId that represents the identifier of an attribute definition or a method definition in the SOM Interface Repository. It contains information about the method's return type and the types of its arguments.) If the class object does not support the indicated method, NULL is returned. | This method returns the method descriptor for a specified method of a class. (A method descriptor is a somId that represents the identifier of an attribute definition or a method definition in the SOM Interface Repository. It contains information about the method's return type and the types of its arguments.) If the class object does not support the indicated method, NULL is returned. | ||
==Example Code== | ==Example Code== | ||
<PRE> | <PRE> | ||
somId myMethodDescriptor; | somId myMethodDescriptor; | ||
myMethodDescriptor = _somGetMethodDescriptor(_Animal, | myMethodDescriptor = _somGetMethodDescriptor(_Animal, somIdFromString("setSound")); | ||
</PRE> | </PRE> | ||
==Related== | ==Related== | ||
;Methods | |||
* [[somAddDynamicMethod]] | * [[somAddDynamicMethod]] | ||
* [[somGetNthMethodInfo]] | * [[somGetNthMethodInfo]] | ||
* [[somGetMethodData]] | * [[somGetMethodData]] | ||
* [[somGetNthMethodData]] | * [[somGetNthMethodData]] | ||
[[Category:SOMClass]] | [[Category:SOMClass]] |
Latest revision as of 17:10, 5 April 2025
This method returns the method descriptor for a method. Not generally overridden.
For backward compatibility, this method does not take an Environment parameter.
- Original Class
- SOMClass
Syntax
somId somGetMethodDescriptor (SOMClass receiver, somId methodId)
Parameters
- receiver (SOMClass)
- A pointer to a SOMClass.
- methodId (somId)
- A somId method descriptor.
Return Code
- rc (somId)
- Returns a somId method descriptor.
Remarks
This method returns the method descriptor for a specified method of a class. (A method descriptor is a somId that represents the identifier of an attribute definition or a method definition in the SOM Interface Repository. It contains information about the method's return type and the types of its arguments.) If the class object does not support the indicated method, NULL is returned.
Example Code
somId myMethodDescriptor; myMethodDescriptor = _somGetMethodDescriptor(_Animal, somIdFromString("setSound"));
Related
- Methods