Package: meta
Superclasses: meta.MetaData
Describe enumeration member of MATLAB class
The meta.EnumeratedValue
class contains information about enumeration members defined by MATLAB® classes. The properties of a meta.EnumeratedValue
object correspond to the attributes of the enumeration member being described.
All meta.EnumeratedValue
properties are read-only. Query the meta.EnumeratedValue
object to obtain information about the enumeration member it describes.
The meta.EnumeratedValue
class is a handle
class.
Abstract | true |
ConstructOnLoad | true |
For information on class attributes, see Class Attributes.
Obtain a meta.EnumeratedValue
object from the EnumerationMemberList
property of the meta.class
object. EnumerationMemberList
is an array of Meta.EnumeratedValue
instances, one per enumeration member.
Use the meta.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'