Jump to content

somGetMethodDescriptor

From EDM2
Revision as of 17:53, 13 October 2017 by Martini (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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