Class Introspection and 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 | Obtainmatlab.metadata.Class object |
matlab.metadata.abstractDetails | Find abstract methods and properties |
matlab.metadata.Class.fromName | Returnmatlab.metadata.Class object that describes named class |
matlab.metadata.Namespace.fromName | Returnmatlab.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 | DescribeMATLAB class |
matlab.metadata.Property | Describe property ofMATLAB class |
matlab.metadata.Method | DescribeMATLAB class method |
matlab.metadata.Event | Describe event defined byMATLAB class |
matlab.metadata.Namespace | DescribeMATLAB namespace |
matlab.metadata.DynamicProperty | Describe dynamic property ofMATLAB object |
matlab.metadata.EnumerationMember | Describe enumeration member ofMATLAB 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 definitionsprogrammatically.
- Class Introspection with Metadata
Inspect class member definitions using metadata.
- Find Objects with Specific Values
Metaclasses support methods that enable you to searchfor objects with properties set to specific values.
- Get Information About Properties
Use
matlab.metadata.Propertyobjects to find detailed information about object properties. - Find Default Values in Property Metadata
Use property metadata to find default values assignedto properties in the class definition.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)