sealed trait Combinator extends Any
- Alphabetic
- By Inheritance
- Combinator
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
+++(paths: PathFinder): PathFinder
The union of the paths found by this
PathFinder
with the paths found by 'paths'. -
abstract
def
---(excludePaths: PathFinder): PathFinder
Excludes all paths from
excludePaths
from the paths selected by thisPathFinder
. -
abstract
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.
-
abstract
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 matchesintermediateExclude
.Selects all descendant paths with a name that matches
include
and do not have an intermediate path with a name that matchesintermediateExclude
.Typical usage is
descendantsExcept("*.jar", ".svn")
-
abstract
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.
-
abstract
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. -
abstract
def
flatMap(f: (File) ⇒ PathFinder): PathFinder
Non-strict flatMap: no evaluation occurs until the returned finder is evaluated.
-
abstract
def
getClass(): Class[_]
- Definition Classes
- Any
-
abstract
def
getPaths(): Seq[String]
Evaluates this finder and converts the results to a distinct sequence of absolute path strings.
-
abstract
def
getURLs(): Array[URL]
Evaluates this finder and converts the results to an
Array
ofURL
s. -
abstract
def
pair[T](mapper: (File) ⇒ Option[T], errorIfNone: Boolean = true): 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) anderrorIfNone
is true, an exception is thrown. IferrorIfNone
is false, the path is dropped from the returned Traversable.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
def
hashCode(): Int
- Definition Classes
- Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any