Dotty Documentation

0.5.0-bin-SNAPSHOT

trait ZipArchiveFileLookup [ FileEntryType ]
extends Object with ClassPath

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.

[-] Constructors

[-] Members

[+] private val archive : FileZipArchive
[+] val zipFile : File
[+] override def asClassPathStrings : Seq [ String ]
[+] override def asURLs : Seq [ URL ]
[+] protected def createFileEntry ( file: Entry ) : FileEntryType
[+] protected def file ( inPackage: String , name: String ) : Option [ FileEntryType ]
[+] protected def files ( inPackage: String ) : Seq [ FileEntryType ]
[+] private def findDirEntry ( pkg: String ) : Option [ DirEntry ]
[+] override def hasPackage ( pkg: String ) : Boolean
[+] protected def isRequiredFileType ( file: AbstractFile ) : Boolean
[+] override def list ( inPackage: String ) : ClassPathEntries

Returns packages and classes (source or classfile) that are members of inPackage (not recursively). The inPackage string is a full package name, e.g., "scala.collection".

This is the main method uses to find classes, see class PackageLoader. The rootMirror.rootLoader is created with inPackage = "".

[+] override def packages ( inPackage: String ) : Seq [ PackageEntry ]