scala.tools.nsc

# classpath

#### package classpath

Content Hierarchy Learn more about scaladoc diagrams
Visibility

1. Public
2. All

### Type Members

1. #### case class AggregateFlatClassPath (aggregates: Seq[FlatClassPath]) extends FlatClassPath with Product with Serializable

   A classpath unifying multiple class- and sourcepath entries.

   A classpath unifying multiple class- and sourcepath entries. Flat 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.

   aggregates

     classpath instances containing entries which this class processes

2. #### trait ClassFileEntry extends ClassRepClassPathEntry

3. #### trait ClassPathFactory [T] extends AnyRef

   A trait that contains factory methods for classpath elements of type T.

   A trait that contains factory methods for classpath elements of type T.

   The logic has been abstracted from ClassPath#ClassPathContext so it's possible to have common trait that supports both recursive and flat classpath representations.

   Therefore, we expect that T will be either ClassPath[U] or FlatClassPath.

4. #### sealed trait ClassRepClassPathEntry extends ClassRepresentation[AbstractFile]

5. #### trait DirectoryFileLookup [FileEntryType <: ClassRepClassPathEntry] extends FlatClassPath

   A trait allowing to look for classpath entries of given type in directories.

   A trait allowing to look for classpath entries of given type 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.

6. #### case class DirectoryFlatClassPath (dir: File) extends DirectoryFileLookup[ClassFileEntryImpl] with NoSourcePaths with Product with Serializable

7. #### case class DirectoryFlatSourcePath (dir: File) extends DirectoryFileLookup[SourceFileEntryImpl] with NoClassPaths with Product with Serializable

8. #### trait FlatClassPath extends ClassFileLookup[AbstractFile]

   A base trait for the particular flat classpath representation implementations.

   A base trait for the particular flat classpath representation implementations.

   We call this variant of a classpath representation flat because it's possible to query the whole classpath using just single instance extending this trait.

   This is an alternative design compared to scala.tools.nsc.util.ClassPath

9. #### case class FlatClassPathEntries (packages: Seq[PackageEntry], classesAndSources: Seq[ClassRepClassPathEntry]) extends Product with Serializable

10. #### class FlatClassPathFactory extends ClassPathFactory[FlatClassPath]

    Provides factory methods for flat classpath.

    Provides factory methods for flat 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.

11. #### trait PackageEntry extends AnyRef

12. #### trait SourceFileEntry extends ClassRepClassPathEntry

13. #### sealed trait ZipAndJarFileLookupFactory extends AnyRef

    A trait providing an optional cache for classpath entries obtained from zip and jar files.

    A trait providing an optional cache for classpath entries obtained from zip and jar files. It's possible to create such a cache assuming that entries in such files won't change (at least will be the same each time we'll load classpath during the lifetime of JVM process) - unlike class and source files in directories, which can be modified and recompiled. 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.

14. #### trait ZipArchiveFileLookup [FileEntryType <: ClassRepClassPathEntry] extends FlatClassPath

    A trait allowing to look for classpath entries of given type in zip and jar files.

    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.

### Value Members

1. #### object DirectoryFileLookup

2. #### object DirectoryFlatClassPath extends Serializable

3. #### object DirectoryFlatSourcePath extends Serializable

4. #### object FileUtils

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

5. #### object FlatClassPath

6. #### object FlatClassPathEntries extends Serializable

7. #### object PackageNameUtils

   Common methods related to package names represented as String

8. #### object ZipAndJarFlatClassPathFactory extends ZipAndJarFileLookupFactory

   Manages creation of flat classpath for class files placed in zip and jar files.

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

9. #### object ZipAndJarFlatSourcePathFactory extends ZipAndJarFileLookupFactory

   Manages creation of flat classpath for source files placed in zip and jar files.

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

### Ungrouped