Package: meta
Superclasses: meta.MetaData
Describe event defined by MATLAB class
The meta.event
class provides information about MATLAB® class events. Properties of the meta.event
class correspond to event attributes and other information that is specified syntactically in the class definition. All properties are read-only.
The meta.event
class is a handle
class.
Abstract | true |
ConstructOnLoad | true |
For information on class attributes, see Class Attributes.
You cannot instantiate a meta.event
object directly. Obtain a meta.event
object from the meta.class
EventList
property, which contains an array of meta.event
objects, one for each event defined for the class. For example, replace ClassName
with the name of the class whose events you want to query:
mco = ?ClassName;
elist = mco.EventList;
elist(1); % meta.event for first event in list
Use the metaclass
function to obtain a meta.class
object from a class instance:
mco = metaclass(obj);
NotifyAccess
Find what code can trigger the matlab.mixin.Copy
class ObjectBeingDestroyed
event. Use the meta.event
object to determine the event NotifyAccess
.
mc = ?matlab.mixin.Copyable; findobj(mc.EventList,'Name','ObjectBeingDestroyed').NotifyAccess
ans = 'private'