matlab.metadata.Class Class
Namespace: matlab.metadata
Superclasses: matlab.metadata.MetaData
Description
The matlab.metadata.Class class provides a way to get descriptive
information about MATLAB® classes. By creating a matlab.metadata.Class object for a
specific class, you can get information about the class definition.
matlab.metadata.Class properties contain lists of properties, methods,
events, and class attributes set in the classdef line, as well as other
information about how the class is defined.
You cannot set the values of matlab.metadata.Class object properties. You
can only query the properties.
Create a matlab.metadata.Class object from an instance of a class or using
the class name using these options:
metaclass(obj)returns amatlab.metadata.Classobject representing the object passed as an argument.?ClassNamereturns amatlab.metadata.Classobject representing the named class.matlab.metadata.Class.fromName("is a static method that returns aClassName")matlab.metadata.Classobject representing the named class.
You cannot instantiate a matlab.metadata.Class object directly by calling
its constructor.
The matlab.metadata.Class class is a handle class.
Class Attributes
Abstract | true |
HandleCompatible | true |
For information on class attributes, see Class Attributes.
Creation
Create a matlab.metadata.Class object from an instance of a class or using
the class name using these options:
metaclass(obj)returns amatlab.metadata.Classobject representing the object passed as an argument.?ClassNamereturns amatlab.metadata.Classobject representing the named class.matlab.metadata.Class.fromName("is a static method that returns aClassName")matlab.metadata.Classobject representing the named class.
You cannot instantiate a matlab.metadata.Class object directly.
Properties
Methods
Events
| Event Name | Trigger | Event Data | Event Attributes |
|---|---|---|---|
InstanceCreated | This event occurs every time an instance of the class described by the
The event occurs immediately after all constructor functions finish executing. | event.ClassInstanceEvent
|
|
InstanceDestroyed | This event occurs every time an instance of the class described by the
The event occurs immediately before any destructor functions execute. | event.ClassInstanceEvent |
|