Package: meta
Superclasses: meta.MetaData
Describe MATLAB class
The meta.class
class provides a way to get descriptive information about MATLAB® classes. By creating a meta.class
object for a specific class, you can get information about the class definition.
Some properties of a meta.class
object contain the values of class attributes defined in the corresponding MATLAB class. Query these properties of to obtain information that is specified syntactically by the class definition on the classdef
line.
Other properties contain lists of properties, methods, and events defined by the class, as well as other information about how the class is defined.
You cannot set the values of meta.class
object properties. You can only query the properties.
Create a meta.class
object from an instance of a class or using the class name using these options:
metaclass(obj)
— returns a meta.class
object representing the object passed as an argument.
?
ClassName
— returns a meta.class
object representing the named class.
meta.class.fromName
('
— static method returns a ClassName
')meta.class
object representing the named class.
You cannot instantiate a meta.class
object directly by calling its constructor.
The meta.class
class is a handle
class.
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 |
|
fromName
| meta.event
| meta.method
| meta.package
| meta.property
| metaclass