Represents the list of Ceylon modules currently loaded at runtime.
Note that this contains all loaded modules, including those that are not imported by your module.
Since Ceylon supports module isolation at runtime, it is possible that there are more than one version of a given module loaded at the same time.
Here's how you would iterate all the loaded modules and print their name and version:
import ceylon.language.meta { modules } for(mod in modules.list){ print("Module: ``mod.name``/``mod.version``"); }
no subtypes hierarchy
Attributes | |
default | Source Codeshared Module? default Returns the default module, if there is one. This is only the case when you are running the default module. |
list | Source Codeshared Module[] list Returns the list of all currently loaded modules. This may include modules that were not imported directly by your module, and multiple versions of the same module. |
Inherited Attributes |
Attributes inherited from: Object |