Model of a package declaration from a package.ceylon compilation unit

Attributes
containerSource Code
shared formal Module container

The module this package belongs to.

sharedSource Code
shared formal Boolean shared

True if this package is shared.

Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: Declaration
Attributes inherited from: Identifiable
Methods
annotatedMembersSource Code
shared formal Kind[] annotatedMembers<Kind, Annotation>()
given Kind satisfies NestableDeclaration

Returns the list of member declarations that satisfy the given Kind type argument and that are annotated with the given Annotation type argument

getAliasSource Code

The type alias with the given name. Returns null if not found.

getClassOrInterfaceSource Code

The class or interface with the given name. Returns null if not found.

getFunctionSource Code

The function with the given name. Returns null if not found.

getMemberSource Code
shared formal Kind? getMember<Kind>(String name)
given Kind satisfies NestableDeclaration

Looks up a member declaration by name, provided it satisfies the given Kind type argument. Returns null if no such member matches.

getValueSource Code

The value with the given name. Returns null if not found.

membersSource Code
shared formal Kind[] members<Kind>()
given Kind satisfies NestableDeclaration

Returns the list of member declarations that satisfy the given Kind type argument.

Inherited Methods
Methods inherited from: Object
Methods inherited from: AnnotatedDeclaration
Methods inherited from: Identifiable