Classpath

final
class Classpath

In-memory representation of an entire classpath.

A Classpath can be given to Contexts.init to create a Contexts.Context. The latter gives semantic access to all the definitions on the classpath.

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def ++(other: Classpath): Classpath

Returns the concatenation of this classpath with other. This is useful for structural sharing of Classpath Entries. e.g. in the following example the standard library is loaded once and shared between two classpaths:

Returns the concatenation of this classpath with other. This is useful for structural sharing of Classpath Entries. e.g. in the following example the standard library is loaded once and shared between two classpaths:

val stdLibCp = ClasspathLoaders.read(standardLibraryPaths)
val libV101Cp = ClasspathLoaders.read(List(Paths.get("path/to/lib-1.0.1.jar"))) ++ stdLibCp
val libV102Cp = ClasspathLoaders.read(List(Paths.get("path/to/lib-1.0.2.jar"))) ++ stdLibCp
def withFilter(binaryNames: List[String]): Classpath

Filter a classpath so it only contains roots that match the given binary names.

Filter a classpath so it only contains roots that match the given binary names.

Concrete fields

val entries: IArray[Entry]