ModuleVersion

inner class ModuleVersion

Information kept in memory about a specific version of a module file.

Constructors

Link copied to clipboard
fun ModuleVersion(    moduleSize: Long,     localImportNames: List<String>,     entryPoints: List<String>)

Construct a new ModuleVersion.

Functions

Link copied to clipboard
fun getCompilation(compilationKey: Repository.ModuleCompilationKey): Repository.ModuleCompilation?

Look up the ModuleCompilation associated with the provided ModuleCompilationKey, answering null if unavailable.

Link copied to clipboard
fun getEntryPoints(): List<String>

The list of entry point names declared by this version of the module.

Link copied to clipboard
fun putComments(bytes: ByteArray)

Write the specified byte array (encoding a tuple of comment) into the indexed file. Record the record position for subsequent retrieval.

Link copied to clipboard
fun putModuleHeader(bytes: ByteArray)

Write the specified byte array (encoding a ModuleHeader) into the indexed file. Record the record position for subsequent retrieval.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val allCompilations: List<Repository.ModuleCompilation>

An immutable List of compilations for this module version. There may be multiple compilations due to changes in ancestor module versions that forced this module to be recompiled.

Link copied to clipboard
val comments: ByteArray?

Answer the serializedtuple of comment associated with this ModuleVersion version.

Link copied to clipboard
val imports: List<String>

Answer the list of local module names imported by this version of the module.

Link copied to clipboard
val moduleHeader: ByteArray

Answer the serializedmodule header associated with this version.