Classpath

object Classpath

Factory object for Classpath instances.

Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

final
class Entry

A Classpath.Entry encapsulates the package data for a single classpath entry (i.e. a given directory or jar file). Can only be created by Classpath.from. You can lookup all symbols originating from this entry with ctx.findSymbolsByClasspathEntry. e.g.:

A Classpath.Entry encapsulates the package data for a single classpath entry (i.e. a given directory or jar file). Can only be created by Classpath.from. You can lookup all symbols originating from this entry with ctx.findSymbolsByClasspathEntry. e.g.:

val classpath = ClasspathLoaders.read(myLibraryPath :: stdLibPaths)
given Context = Contexts.init(classpath)
val myLibSyms = ctx.findSymbolsByClasspathEntry(classpath.entries.head)

Value members

Concrete methods

def from(entries: Seq[IArray[PackageData]]): Classpath

Creates a Classpath from a sequence of classpath entries. Each entry corresponds to a single directory or jar file, and represents the various .class and .tasty files found within it.

Creates a Classpath from a sequence of classpath entries. Each entry corresponds to a single directory or jar file, and represents the various .class and .tasty files found within it.