ModuleRoot

class ModuleRoot constructor(val name: String, val resolver: ModuleRootResolver)

A ModuleRoot represents a vendor of Avail modules and/or the vended modules themselves.

Author

Todd L Smith

Richard Arriaga

Parameters

name

The name of the module root.

resolver

The ModuleRootResolver used to provide access to the location that contains source modules and resources for this root.

Throws

org.availlang.persistence.IndexedFileException

If the indexed repository could not be opened.

Constructors

Link copied to clipboard
fun ModuleRoot(name: String, resolver: ModuleRootResolver)

Construct a new ModuleRoot.

Functions

Link copied to clipboard
fun clearRepository()

Clear the content of the repository for this root.

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

Write the binary and the source module (respectively) into a new JSON array.

Properties

Link copied to clipboard
val name: String

The module root name.

Link copied to clipboard
val repository: Repository

The indexed repository that contains compiled modules for this root.

Link copied to clipboard
val resolver: ModuleRootResolver

If provided, then the path to the directory that contains source modules for this root.