sbt

PathFinder

sealed abstract class PathFinder extends AnyRef

A path finder constructs a set of paths. The set is evaluated by a call to the get method. The set will be different for different calls to get if the underlying filesystem has changed.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. PathFinder
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PathFinder()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def *(filter: FileFilter): PathFinder

    Constructs a new finder that selects all paths with a name that matches filter and are immediate children of paths selected by this finder.

  5. def **(filter: FileFilter): PathFinder

    Constructs a new finder that selects all paths with a name that matches filter and are descendants of paths selected by this finder.

  6. def ***: PathFinder

  7. def +++(paths: PathFinder): PathFinder

    The union of the paths found by this PathFinder with the paths found by 'paths'.

  8. def ---(excludePaths: PathFinder): PathFinder

    Excludes all paths from excludePaths from the paths selected by this PathFinder.

  9. def /(literal: String): PathFinder

    Constructs a new finder that selects all paths with name literal that are immediate children of paths selected by this finder.

  10. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  12. final def \(literal: String): PathFinder

    Constructs a new finder that selects all paths with name literal that are immediate children of paths selected by this finder.

  13. final def absString: String

    Constructs a string by evaluating this finder, converting the resulting Paths to absolute path strings, and joining them with the platform path separator.

  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def descendantsExcept(include: FileFilter, intermediateExclude: FileFilter): PathFinder

    Selects all descendant paths with a name that matches include and do not have an intermediate path with a name that matches intermediateExclude.

    Selects all descendant paths with a name that matches include and do not have an intermediate path with a name that matches intermediateExclude. Typical usage is:

    descendantsExcept("*.jar", ".svn")

  17. def distinct: PathFinder

    Create a PathFinder from this one where each path has a unique name.

    Create a PathFinder from this one where each path has a unique name. A single path is arbitrarily selected from the set of paths with the same name.

  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. final def filter(f: (File) ⇒ Boolean): PathFinder

    Only keeps paths for which f returns true.

    Only keeps paths for which f returns true. It is non-strict, so it is not evaluated until the returned finder is evaluated.

  21. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. final def flatMap(f: (File) ⇒ PathFinder): PathFinder

  23. final def get: Seq[File]

    Evaluates this finder and converts the results to a Seq of distinct Files.

    Evaluates this finder and converts the results to a Seq of distinct Files. The files returned by this method will reflect the underlying filesystem at the time of calling. If the filesystem changes, two calls to this method might be different.

  24. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  25. final def getPaths: Seq[String]

    Evaluates this finder and converts the results to a distinct sequence of absolute path strings.

  26. final def getURLs: Array[URL]

    Evaluates this finder and converts the results to an Array of URLs.

    Evaluates this finder and converts the results to an Array of URLs..

  27. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  32. def pair[T](mapper: (File) ⇒ Option[T], errorIfNone: Boolean): Seq[(File, T)]

    Applies mapper to each path selected by this PathFinder and returns the path paired with the non-empty result.

    Applies mapper to each path selected by this PathFinder and returns the path paired with the non-empty result. If the result is empty (None) and errorIfNone is true, an exception is thrown. If errorIfNone is false, the path is dropped from the returned Traversable.

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Constructs a debugging string for this finder by evaluating it and separating paths by newlines.

    Constructs a debugging string for this finder by evaluating it and separating paths by newlines.

    Definition Classes
    PathFinder → AnyRef → Any
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. def x[T](mapper: (File) ⇒ Option[T], errorIfNone: Boolean): Seq[(File, T)]

    Applies mapper to each path selected by this PathFinder and returns the path paired with the non-empty result.

    Applies mapper to each path selected by this PathFinder and returns the path paired with the non-empty result. If the result is empty (None) and errorIfNone is true, an exception is thrown. If errorIfNone is false, the path is dropped from the returned Traversable.

  39. def x_![T](mapper: (File) ⇒ Option[T]): Traversable[(File, T)]

Deprecated Value Members

  1. def descendentsExcept(include: FileFilter, intermediateExclude: FileFilter): PathFinder

    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.0) Use descendantsExcept instead.

  2. def getFiles: Seq[File]

    Annotations
    @deprecated
    Deprecated

    (Since version scala.this.deprecated.init$default$2) Use get

Inherited from AnyRef

Inherited from Any