Classpaths

tastyquery.Classpaths
object Classpaths

Representation of the contents of classpaths.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Classpaths.type

Members list

Type members

Classlikes

trait ClassData

Information about one class within a PackageData.

Information about one class within a PackageData.

When both a .class file and a .tasty file exist for a given binary name, they are represented by the same instance of ClassData.

Implementations of this class are encouraged to define a toString() method that helps identifying the class and its enclosing package and classpath entry for debugging purposes.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ClassData

One entry of the classpath.

One entry of the classpath.

A ClasspathEntry must have a meaningful equals and hashCode, which must reflect the identity of the entry (not necessarily the reference identity). Its equality is notably used by Contexts.Context.findSymbolsByClasspathEntry.

Users of a ClasspathEntry and its components may consider them to be idempotent.

All the methods of ClasspathEntry and its components may throw java.io.IOExceptions to indicate I/O errors.

A ClasspathEntry is encouraged to be thread-safe, along with all its components, but it is not a strong requirement. Implementations that are thread-safe should be documented as such. Contexts.Contexts created only from thread-safe ClasspathEntrys are thread-safe themselves.

Implementations of this class are encouraged to define a toString() method that helps identifying the entry for debugging purposes.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object InMemory

In-memory representation of classpath entries.

In-memory representation of classpath entries.

In-memory classpath entries are thread-safe.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
InMemory.type
trait PackageData

Information about one package within a ClasspathEntry.

Information about one package within a ClasspathEntry.

Implementations of this class are encouraged to define a toString() method that helps identifying the package and its enclosing classpath entry for debugging purposes.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class PackageData

Types

type Classpath = List[ClasspathEntry]

The representation of an entire classpath.

The representation of an entire classpath.

Classpaths are made of a sequence of entries (where order is relevant). Each entry contains a set of packages, and packages contain set of class information files.

Attributes