meta.package.fromName

Return meta.package object for specified package

Syntax

mpkg = meta.package.fromName('pkgname')

Description

mpkg = meta.package.fromName('pkgname') is a static method that returns the meta.package object associated with the named package. If pkgname is a nested package, then you must provide the fully qualified name (e.g., 'pkgname1.pkgname2').

Examples

List the classes in the event package:

mev = meta.package.fromName('event');
for k=1:length(mev.Classes)
   disp(mev.Classes{k}.Name)
end
event.EventData
event.PropertyEvent
event.listener
event.proplistener
Was this topic helpful?