ResolvedModuleName

class ResolvedModuleName : ModuleName

A ResolvedModuleName represents the canonical name of an Avail module that has been resolved to an absolutefile reference.

Author

Todd L Smith

Richard Arriaga

Parameters

qualifiedName

The just-resolved module name.

moduleRoots

The ModuleRoots with which to look up the module.

resolverReference

The ResolverReference for the module.

isRename

Whether module resolution followed a renaming rule.

Functions

Link copied to clipboard
fun asSibling(theLocalName: String): ModuleName

Answer the local module name as a sibling of the receiver.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val isPackage: Boolean

true iff the resolved module name represents a package, false otherwise.

Link copied to clipboard
val isRename: Boolean = false

true iff this module name was transformed via a rename rule.

Link copied to clipboard
val localName: String

The local name of the module referenced by this ModuleName.

Link copied to clipboard
val moduleSize: Long

The size, in bytes, of the module. If the source module is available, then the size of the source module is used; otherwise, the size of the compiled module is used.

Link copied to clipboard
val packageName: String

The fully-qualified package name of the ModuleName.

Link copied to clipboard
val qualifiedName: String

The fully-qualified module name.

Link copied to clipboard
val repository: Repository
Link copied to clipboard
val resolverReference: ResolverReference

The ResolverReference for the module.

Link copied to clipboard
val rootName: String

The logical root name of the ModuleName.

Link copied to clipboard
val rootRelativeName: String

The lazily-initialized root-relative ModuleName. This is the fully-qualified name minus the rootName.