Package: meta
Superclasses: meta.MetaData
Information about class method
The meta.method class provides information about the methods of MATLAB® classes. Properties of the meta.method class correspond to method attributes and other information that is specified syntactically in the class definition. All properties are read-only.
The meta.method class is a handle class.
Abstract | true |
ConstructOnLoad | true |
For information on class attributes, see Class Attributes.
You cannot instantiate a meta.method object directly. Obtain a meta.method object from the meta.class
MethodList property, which contains an array of meta.method objects, one for each class method.
For example, in the following code, replace ClassName with the name of the class whose methods you want to query:
mco = ?ClassName;
mlist = mco.MethodList;
mlist(1).Name; % name of first method in the list
To obtain a meta.class object from a class instance, use the metaclass function:
mco = metaclass(obj);