Classpath

tastyquery.Classpaths$.Classpath
See theClasspath companion object
final class Classpath(val entries: IArray[Entry])

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.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

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

Attributes

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.

Attributes

Concrete fields

val entries: IArray[Entry]