dotty.tools.dotc.classpath

Members list

Type members

Classlikes

case class AggregateClassPath(aggregates: Seq[ClassPath]) extends ClassPath

A classpath unifying multiple class- and sourcepath entries. The Classpath can obtain entries for classes and sources independently so it tries to do operations quite optimally - iterating only these collections which are needed in the given moment and only as far as it's necessary.

A classpath unifying multiple class- and sourcepath entries. The Classpath can obtain entries for classes and sources independently so it tries to do operations quite optimally - iterating only these collections which are needed in the given moment and only as far as it's necessary.

Value parameters

aggregates

classpath instances containing entries which this class processes

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait ClassPath
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
case class ClassPathEntries(packages: Seq[PackageEntry], classesAndSources: Seq[ClassRepresentation])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Provides factory methods for classpath. When creating classpath instances for a given path, it uses proper type of classpath depending on a types of particular files containing sources or classes.

Provides factory methods for classpath. When creating classpath instances for a given path, it uses proper type of classpath depending on a types of particular files containing sources or classes.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
final class CtSymClassPath(ctSym: Path, release: Int) extends ClassPath

Implementation ClassPath based on the $JAVA_HOME/lib/ct.sym backing http://openjdk.java.net/jeps/247

Implementation ClassPath based on the $JAVA_HOME/lib/ct.sym backing http://openjdk.java.net/jeps/247

Attributes

Supertypes
trait ClassPath
class Object
trait Matchable
class Any
case class DirectoryClassPath(dir: File) extends JFileDirectoryLookup[ClassFileEntryImpl]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JFileDirectoryLookup[ClassFileEntryImpl]
trait DirectoryLookup[ClassFileEntryImpl]
trait ClassPath
class Object
trait Matchable
class Any
Show all
trait DirectoryLookup[FileEntryType <: ClassRepresentation] extends EfficientClassPath

A trait allowing to look for classpath entries in directories. It provides common logic for classes handling class and source files. It makes use of the fact that in the case of nested directories it's easy to find a file when we have a name of a package. It abstracts over the file representation to work with both JFile and AbstractFile.

A trait allowing to look for classpath entries in directories. It provides common logic for classes handling class and source files. It makes use of the fact that in the case of nested directories it's easy to find a file when we have a name of a package. It abstracts over the file representation to work with both JFile and AbstractFile.

Attributes

Supertypes
trait ClassPath
class Object
trait Matchable
class Any
Known subtypes
case class DirectorySourcePath(dir: File) extends JFileDirectoryLookup[SourceFileEntryImpl]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JFileDirectoryLookup[SourceFileEntryImpl]
trait DirectoryLookup[SourceFileEntryImpl]
trait ClassPath
class Object
trait Matchable
class Any
Show all
final class FileBasedCache[T]

Attributes

Supertypes
class Object
trait Matchable
class Any
object FileUtils

Common methods related to Java files and abstract files used in the context of classpath

Common methods related to Java files and abstract files used in the context of classpath

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
FileUtils.type
trait JFileDirectoryLookup[FileEntryType <: ClassRepresentation] extends DirectoryLookup[FileEntryType]

Attributes

Supertypes
trait DirectoryLookup[FileEntryType]
trait ClassPath
class Object
trait Matchable
class Any
Show all
Known subtypes
object JrtClassPath

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
final class JrtClassPath(fs: FileSystem) extends ClassPath

Implementation ClassPath based on the JDK 9 encapsulated runtime modules (JEP-220)

Implementation ClassPath based on the JDK 9 encapsulated runtime modules (JEP-220)

https://bugs.openjdk.java.net/browse/JDK-8066492 is the most up to date reference for the structure of the jrt:// filesystem.

The implementation assumes that no classes exist in the empty package.

Attributes

Companion
object
Supertypes
trait ClassPath
class Object
trait Matchable
class Any
trait PackageEntry

Attributes

Supertypes
class Object
trait Matchable
class Any
case class PackageName(dottedString: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Common methods related to package names represented as String

Common methods related to package names represented as String

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
case class VirtualDirectoryClassPath(dir: VirtualDirectory) extends ClassPath, DirectoryLookup[ClassFileEntryImpl]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait DirectoryLookup[ClassFileEntryImpl]
trait ClassPath
class Object
trait Matchable
class Any
Show all

Manages creation of classpath for class files placed in zip and jar files. It should be the only way of creating them as it provides caching.

Manages creation of classpath for class files placed in zip and jar files. It should be the only way of creating them as it provides caching.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

A trait providing an optional cache for classpath entries obtained from zip and jar files. It allows us to e.g. reduce significantly memory used by PresentationCompilers in Scala IDE when there are a lot of projects having a lot of common dependencies.

A trait providing an optional cache for classpath entries obtained from zip and jar files. It allows us to e.g. reduce significantly memory used by PresentationCompilers in Scala IDE when there are a lot of projects having a lot of common dependencies.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Manages creation of classpath for source files placed in zip and jar files. It should be the only way of creating them as it provides caching.

Manages creation of classpath for source files placed in zip and jar files. It should be the only way of creating them as it provides caching.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

A trait allowing to look for classpath entries of given type in zip and jar files. It provides common logic for classes handling class and source files. It's aware of things like e.g. META-INF directory which is correctly skipped.

A trait allowing to look for classpath entries of given type in zip and jar files. It provides common logic for classes handling class and source files. It's aware of things like e.g. META-INF directory which is correctly skipped.

Attributes

Supertypes
trait ClassPath
class Object
trait Matchable
class Any