meta.package

meta.package class describes MATLAB packages

Description

The meta.package class contains information about MATLAB® packages.

You cannot instantiate a meta.package object directly. Obtain a meta.package object from the meta.class ContainingPackage property, which contains a meta.package object, or an empty object, if the class is not in a package.

Properties

PropertyPurpose
Name read onlyName of the package associated with this meta.package object
ClassList read only List of classes that are scoped to this package. An object array of meta.class objects.
Classes read only

Use ClassList instead

List of classes that are scoped to this package. A cell array of meta.class objects.
FunctionList read onlyList of functions that are scoped to this package. An object array of function handles.
Functions read only

Use FunctionList instead

List of functions that are scoped to this package. A cell array of function handles.
PackageList read onlyList of packages that are scoped to this package. An object array of meta.package objects.
Packages read only

Use PackageList instead

List of packages that are scoped to this package. A cell array of meta.package objects.
ContainingPackage read onlyA meta.package object describing the package within which this package is contained, or an empty object if this package is not nested.

Methods

MethodPurpose
fromNameStatic method returns a meta.package object for a specified package name.
getAllPackagesStatic method returns a cell array of meta.package objects representing all top-level packages.

Was this topic helpful?