Classpath

object Classpath

Factory object for Classpath instances.

Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

final
class Entry(val packages: IArray[PackageData])

An entry (directory or jar file) of a Classpath.

An entry (directory or jar file) of a Classpath.

You can lookup all symbols originating from a particular Classpath.Entry with ctx.findSymbolsByClasspathEntry.

For example:

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

Value members

Deprecated methods

@deprecated("use Classpath(IArray.from(entries).map(Classpath.Entry(_)) instead", since = "0.5.2")
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.

Deprecated
[Since version 0.5.2]