Dotty Documentation

0.2.0-bin-SNAPSHOT

trait DirectoryLookup [ FileEntryType ]
extends ClassPath

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.

[-] Constructors

[-] Members

[+] type F =
[+] val dir : F
[+] protected def createFileEntry ( file: AbstractFile ) : FileEntryType
[+] protected def emptyFiles : Array [ F ]
[+] protected def files ( inPackage: String ) : Seq [ FileEntryType ]
[+] private def getDirectory ( forPackage: String ) : Option [ F ]
[+] protected def getName ( f: F ) : String
[+] protected def getSubDir ( dirName: String ) : Option [ F ]
[+] protected def isMatchingFile ( f: F ) : Boolean
[+] protected def isPackage ( f: F ) : Boolean
[+] def list ( inPackage: String ) : ClassPathEntries

Allows to get entries for packages and classes merged with sources possibly in one pass.

[+] protected def listChildren ( dir: F , filter: Option [ F => Boolean ] ) : Array [ F ]
[+] def packages ( inPackage: String ) : Seq [ PackageEntry ]

Empty string represents root package

[+] protected def toAbstractFile ( f: F ) : AbstractFile