Note: information on this page refers to Ceylon 1.0, not to the current release.
A package may belong to a module.
An example package descriptor:
shared package com.example.foo.bar;
This would occur in the source file
<source-dir> is the directory containing ceylon source code,
A package's members are the top-level declarations contained in its compliation unit(s).
holds metadata about the package and is declared in a source
package.ceylon in the package being described.
Here's an example:
"An example package" shared package com.example.foo.bar;
package declaration may be preceeded by annotations,
sharedto allow the package to be visible outside its containing module,
docto let you to specify package-level documentation,
byto document the package's author or authors.
The package declaration consists of the
followed by the package name.
It is common not to have a package descriptor if the package
Packages can be manipulated at runtime via their representation as