ClasspathLoaders

tastyquery.jdk.ClasspathLoaders

Classpath loaders using the JDK API.

This API is specific to the JVM. It is not available in Scala.js.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def read(classpath: List[Path]): Classpath

Reads the contents of a classpath.

Reads the contents of a classpath.

Entries can be directories or jar files. Non-existing entries are ignored.

This method will synchronously read the contents of all .class and .tasty files on the classpath.

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

The entries of the resulting Classpaths.Classpath are all guaranteed to be thread-safe.

Attributes

Note

the resulting ClasspathEntry entries of the returned Classpaths.Classpath correspond to the elements of classpath.