meta.class class
Package: meta
Superclasses: meta.MetaData
Describe MATLAB class
Description
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 for 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 ameta.class
object representing the object passed as an argument.?
ClassName
— returns ameta.class
object representing the named class.meta.class.fromName
('
— static method returns aClassName
')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.
Class Attributes
Abstract | true |
HandleCompatible | true |
For information on class attributes, see Class Attributes.
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 |
|
Examples
Version History
Introduced in R2008aSee Also
fromName
| meta.property
| meta.method
| meta.event
| meta.package
| metaclass