Class Introspection and Metadata
Get detailed information about classes from class metadata
Metadata provides information about class definitions. Find information about all properties, methods, and events defined by the class without constructing objects of the class.
Functions
metaclass | Obtain matlab.metadata.Class object |
matlab.metadata.abstractDetails | Find abstract methods and properties |
matlab.metadata.Class.fromName | Return matlab.metadata.Class object that describes named
class |
matlab.metadata.Namespace.fromName | Return matlab.metadata.Namespace object for specified
namespace |
matlab.metadata.Namespace.getAllNamespaces | Get all top-level namespaces |
properties | Class property names |
methods | Class method names |
ismethod | Determine if object has specified method |
events | Event names |
superclasses | Names of superclasses |
Classes
matlab.metadata.Class | Describe MATLAB class |
matlab.metadata.Property | Describe property of MATLAB class |
matlab.metadata.Method | Describe MATLAB class method |
matlab.metadata.Event | Describe event defined by MATLAB class |
matlab.metadata.Namespace | Describe MATLAB namespace |
matlab.metadata.DynamicProperty | Describe dynamic property of MATLAB object |
matlab.metadata.EnumerationMember | Describe enumeration member of MATLAB class |
matlab.metadata.MetaData | Root of metadata class hierarchy |
matlab.metadata.ArrayDimension | Size information for property validation |
matlab.metadata.Validation | Describes property validation |
matlab.metadata.FixedDimension | Fixed dimension in property size specification |
matlab.metadata.UnrestrictedDimension | Unrestricted dimension in property size specification |
Topics
- Class Metadata
Metaclasses provide a way to inspect class definitions programmatically.
- Class Introspection with Metadata
Inspect class member definitions using metadata.
- Find Objects with Specific Values
Metaclasses support methods that enable you to search for objects with properties set to specific values.
- Get Information About Properties
Use
matlab.metadata.Property
objects to find detailed information about object properties. - Find Default Values in Property Metadata
Use property metadata to find default values assigned to properties in the class definition.