Introspezione delle classi e metadati
Informazioni dettagliate sulle classi dai metadati della classe
I metadati forniscono informazioni sulle definizioni delle classi. Si possono trovare informazioni su tutte le proprietà, i metodi e gli eventi definiti dalla classe, senza dover costruire oggetti della classe.
Funzioni
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 |
Classi
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 |
Argomenti
- 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.