Even if this question is resolved, let me add another answer using the possibilities meta.class:
%
clname = 'hgsetget';
%
mt = meta.class.fromName(clname);
%
cdef = arrayfun(@(c)c.Name, [mt.MethodList.DefiningClass], 'Uniform',false);
%
subMethods = {mt.MethodList(ismember(cdef,clname)).Name}
The result for this example:
subMethods =
'set' 'get' 'setdisp' 'getdisp' 'empty'
Notice how the result also includes static methods emptythat all non-abstract classes have (used to create an empty array of this class).
Amro source
share