MATLAB Object-Oriented Programming

(Joyce) #1

DetailedDescription: ''
Hidden: 0
Sealed: 0
Abstract: 0
Enumeration: 0
ConstructOnLoad: 0
HandleCompatible: 1
InferiorClasses: {0×1 cell}
ContainingPackage: [0×0 meta.package]
RestrictsSubclassing: 0
PropertyList: [3×1 meta.property]
MethodList: [22×1 meta.method]
EventList: [1×1 meta.event]
EnumerationMemberList: [0×1 meta.EnumeratedValue]
SuperclassList: [1×1 meta.class]


The meta.class object property named PropertyList contains an array of
meta.property objects, one for each property defined by the class. For example, the
name of the property associated with the meta.property object in element 1 is:


mc.PropertyList(1).Name


ans =


Date


The meta.class object contains a meta.property object for all properties, including
hidden properties. The properties function returns only public properties.


For a handle class, use the handle findprop method to get the meta.property object
for a specific property.


For example, find the meta.property object for the Category property of the
BasicHandle class.


mp = findprop(BasicHandle,'Category')


mp =


property with properties:


Name: 'Category'
Description: ''
DetailedDescription: ''
GetAccess: 'public'


Get Information About Properties
Free download pdf