Classpath

tastyquery.Classpaths$.Classpath$
See theClasspath companion class
object Classpath

Factory object for Classpath instances.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Classpath.type

Members list

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)

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Deprecated 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.

Attributes

Deprecated
[Since version 0.5.2]