t

scala.tools.nsc.classpath

DirectoryLookup

trait DirectoryLookup[FileEntryType <: ClassRepresentation] 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.

Source
DirectoryClassPath.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DirectoryLookup
  2. ClassPath
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type F

Abstract Value Members

  1. abstract def asClassPathStrings: Seq[String]
    Definition Classes
    ClassPath
  2. abstract def asSourcePathString: String

    The whole sourcepath in the form of one String.

    The whole sourcepath in the form of one String.

    Definition Classes
    ClassPath
  3. abstract def asURLs: Seq[URL]
    Definition Classes
    ClassPath
  4. abstract def createFileEntry(file: AbstractFile): FileEntryType
    Attributes
    protected
  5. abstract val dir: F
  6. abstract def emptyFiles: Array[F]
    Attributes
    protected
  7. abstract def findClassFile(className: String): Option[AbstractFile]
    Definition Classes
    ClassPath
  8. abstract def getName(f: F): String
    Attributes
    protected
  9. abstract def getSubDir(dirName: String): Option[F]
    Attributes
    protected
  10. abstract def isMatchingFile(f: F): Boolean
    Attributes
    protected
  11. abstract def isPackage(f: F): Boolean
    Attributes
    protected
  12. abstract def listChildren(dir: F, filter: Option[(F) ⇒ Boolean] = None): Array[F]
    Attributes
    protected
  13. abstract def toAbstractFile(f: F): AbstractFile
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from DirectoryLookup[FileEntryType] to any2stringadd[DirectoryLookup[FileEntryType]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (DirectoryLookup[FileEntryType], B)
    Implicit
    This member is added by an implicit conversion from DirectoryLookup[FileEntryType] to ArrowAssoc[DirectoryLookup[FileEntryType]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def asClassPathString: String

    The whole classpath in the form of one String.

    The whole classpath in the form of one String.

    Definition Classes
    ClassPath
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def ensuring(cond: (DirectoryLookup[FileEntryType]) ⇒ Boolean, msg: ⇒ Any): DirectoryLookup[FileEntryType]
    Implicit
    This member is added by an implicit conversion from DirectoryLookup[FileEntryType] to Ensuring[DirectoryLookup[FileEntryType]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (DirectoryLookup[FileEntryType]) ⇒ Boolean): DirectoryLookup[FileEntryType]
    Implicit
    This member is added by an implicit conversion from DirectoryLookup[FileEntryType] to Ensuring[DirectoryLookup[FileEntryType]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): DirectoryLookup[FileEntryType]
    Implicit
    This member is added by an implicit conversion from DirectoryLookup[FileEntryType] to Ensuring[DirectoryLookup[FileEntryType]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): DirectoryLookup[FileEntryType]
    Implicit
    This member is added by an implicit conversion from DirectoryLookup[FileEntryType] to Ensuring[DirectoryLookup[FileEntryType]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def files(inPackage: String): Seq[FileEntryType]
    Attributes
    protected
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def findClass(className: String): Option[ClassRepresentation]

    It returns both classes from class file and source files (as our base ClassRepresentation).

    It returns both classes from class file and source files (as our base ClassRepresentation). So note that it's not so strictly related to findClassFile.

    Definition Classes
    ClassPath
  18. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from DirectoryLookup[FileEntryType] to StringFormat[DirectoryLookup[FileEntryType]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def [B](y: B): (DirectoryLookup[FileEntryType], B)
    Implicit
    This member is added by an implicit conversion from DirectoryLookup[FileEntryType] to ArrowAssoc[DirectoryLookup[FileEntryType]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def asClasspathString: String
    Definition Classes
    ClassPath
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.5) use asClassPathString instead of this one

Inherited from ClassPath

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from DirectoryLookup[FileEntryType] to any2stringadd[DirectoryLookup[FileEntryType]]

Inherited by implicit conversion StringFormat from DirectoryLookup[FileEntryType] to StringFormat[DirectoryLookup[FileEntryType]]

Inherited by implicit conversion Ensuring from DirectoryLookup[FileEntryType] to Ensuring[DirectoryLookup[FileEntryType]]

Inherited by implicit conversion ArrowAssoc from DirectoryLookup[FileEntryType] to ArrowAssoc[DirectoryLookup[FileEntryType]]

Ungrouped