Package: meta
Superclasses: meta.MetaData
Describe property of MATLAB class
The meta.property
class provides information about the properties of MATLAB® classes. Properties of the meta.property
class contain the values of property attributes and other information that is specified syntactically in the class definition. All properties are read-only.
The meta.property
class is a handle
class.
Abstract | true |
ConstructOnLoad | true |
For information on class attributes, see Class Attributes.
You cannot instantiate a meta.property
object directly. Obtain a meta.property
object from the meta.class
PropertyList
property, which contains an array of meta.property
objects, one for each class property. For example, replace ClassName
with the name of the class whose properties you want to query:
mco = ?ClassName;
plist = mco.PropertyList;
mp = plist(1); % meta.property for first property in list
Use the metaclass
function to obtain a meta.class
object from a class instance:
mco = metaclass(obj);
Event Name | Trigger | Event Data | Event Attributes |
---|---|---|---|
PreGet | Event occurs just before the property value is queried. | event.PropertyEvent |
|
PostGet | Event occurs just after the property value has been queried. | event.PropertyEvent |
|
PreSet | Event occurs just before the property value is changed. | event.PropertyEvent |
|
PostSet | Event occurs just after the property value has been changed. | event.PropertyEvent |
|