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.
- Alphabetic
- By Inheritance
- PathFinder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def *(filter: FileFilter): PathFinder
Alias of glob
- final def **(filter: FileFilter): PathFinder
Alias of globRecursive.
- def +++(paths: PathFinder): PathFinder
The union of the paths found by this
PathFinderwith the paths found by 'paths'. - def ---(excludePaths: PathFinder): PathFinder
Excludes all paths from
excludePathsfrom the paths selected by thisPathFinder. - def /(literal: String): PathFinder
Constructs a new finder that selects all paths with name
literalthat are immediate children of paths selected by this finder. - final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def \(literal: String): PathFinder
Constructs a new finder that selects all paths with name
literalthat are immediate children of paths selected by this finder. - 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.
- def allPaths: PathFinder
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.CloneNotSupportedException])
- def descendantsExcept(include: FileFilter, intermediateExclude: FileFilter): PathFinder
Selects all descendant paths with a name that matches
includeand do not have an intermediate path with a name that matchesintermediateExclude.Selects all descendant paths with a name that matches
includeand do not have an intermediate path with a name that matchesintermediateExclude.Typical usage is
descendantsExcept("*.jar", ".svn") - 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.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def filter(f: (File) ⇒ Boolean): PathFinder
Only keeps paths for which
freturns true.Only keeps paths for which
freturns true. It is non-strict, so it is not evaluated until the returned finder is evaluated. - def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def flatMap(f: (File) ⇒ PathFinder): PathFinder
Non-strict flatMap: no evaluation occurs until the returned finder is evaluated.
- final def get(): Seq[File]
Evaluates this finder and converts the results to a
Seqof distinctFiles.Evaluates this finder and converts the results to a
Seqof distinctFiles. 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. - final def getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def getPaths(): Seq[String]
Evaluates this finder and converts the results to a distinct sequence of absolute path strings.
- final def getURLs(): Array[URL]
Evaluates this finder and converts the results to an
ArrayofURLs. - def glob(filter: FileFilter): PathFinder
Constructs a new finder that selects all paths with a name that matches
filterand are immediate children of paths selected by this finder.Constructs a new finder that selects all paths with a name that matches
filterand are immediate children of paths selected by this finder.- filter
only include files that this filter accepts
- def globRecursive(filter: FileFilter, walker: (File, FileFilter, Set[File]) ⇒ Unit): PathFinder
Constructs a new finder that selects all paths with a name that matches
filterand are descendants of paths selected by this finder.Constructs a new finder that selects all paths with a name that matches
filterand are descendants of paths selected by this finder.- filter
only include files that this filter accepts
- walker
use this walker to traverse the file system
- def globRecursive(filter: FileFilter): PathFinder
Constructs a new finder that selects all paths with a name that matches
filterand are descendants of paths selected by this finder.Constructs a new finder that selects all paths with a name that matches
filterand are descendants of paths selected by this finder.- filter
only include files that this filter accepts
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def pair[T](mapper: (File) ⇒ Option[T], errorIfNone: Boolean = true): Seq[(File, T)]
Applies
mapperto each path selected by this PathFinder and returns the path paired with the non-empty result.Applies
mapperto each path selected by this PathFinder and returns the path paired with the non-empty result. If the result is empty (None) anderrorIfNoneis true, an exception is thrown. IferrorIfNoneis false, the path is dropped from the returned Traversable. - final def synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- 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
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.InterruptedException])