Package:meta
Superclasses:meta.MetaData
Describe enumeration member ofMATLABclass
Themeta.EnumeratedValue
class contains information about enumeration members defined by MATLAB®classes. The properties of ameta.EnumeratedValue
object correspond to the attributes of the enumeration member being described.
Allmeta.EnumeratedValue
properties are read-only. Query themeta.EnumeratedValue
object to obtain information about the enumeration member it describes.
Themeta.EnumeratedValue
class is ahandle
class.
Abstract |
true
|
ConstructOnLoad |
true
|
For information on class attributes, seeClass Attributes.
Obtain ameta.EnumeratedValue
object from theEnumerationMemberList
财产的meta.class
object.EnumerationMemberList
is an array ofmeta.EnumeratedValue
instances, one per enumeration member.
Use themeta.class
EnumerationMemberList
property to get the names of the enumeration members defined in an enumeration class.
mc = ?matlab.lang.OnOffSwitchState; mc.EnumerationMemberList.Name
ans = 'off' ans = 'on'