abstract class PathMatcher[L] extends (Path) => Matching[L]

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatcher.Unmatched.

Self Type
PathMatcher[L]
Source
PathMatcher.scala
Linear Supertypes
(Path) => Matching[L], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PathMatcher
  2. Function1
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PathMatcher()(implicit ev: Tuple[L])

Abstract Value Members

  1. abstract def apply(v1: Path): Matching[L]
    Definition Classes
    Function1

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def /[R](other: PathMatcher[R])(implicit join: Join[L, R]): PathMatcher[Out]

    Alias for slash.

  4. def /: PathMatcher[L]

    Alias for slash.

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def andThen[A](g: (Matching[L]) => A): (Path) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. def append[R](other: PathMatcher[R])(implicit join: Join[L, R]): PathMatcher[Out]
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  10. def compose[A](g: (A) => Path): (A) => Matching[L]
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. implicit val ev: Tuple[L]
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def or[R >: L](other: PathMatcher[_ <: R])(implicit arg0: Tuple[R]): PathMatcher[R]
  21. def repeat(min: Int, max: Int, separator: PathMatcher0 = PathMatchers.Neutral)(implicit lift: Lift[L, List]): PathMatcher[Out]

    Turns this PathMatcher into one that matches a number of times (with the given separator) and potentially extracts a List of the underlying matcher's extractions.

    Turns this PathMatcher into one that matches a number of times (with the given separator) and potentially extracts a List of the underlying matcher's extractions. If less than min applications of the underlying matcher have succeeded the produced matcher fails, otherwise it matches up to the given max number of applications. Note that it won't fail even if more than max applications could succeed! The "surplus" path elements will simply be left unmatched.

    The result type depends on the type of the underlying matcher:

    If a `matcher` is of typethen `matcher.repeat(...)` is of type
    `PathMatcher0``PathMatcher0`
    `PathMatcher1[T]``PathMatcher1[List[T]`
    `PathMatcher[L :Tuple]``PathMatcher[List[L]]`

  22. def repeat(count: Int, separator: PathMatcher0)(implicit lift: Lift[L, List]): PathMatcher[Out]

    Same as repeat(min = count, max = count, separator = separator).

  23. def repeat(count: Int)(implicit lift: Lift[L, List]): PathMatcher[Out]

    Same as repeat(min = count, max = count).

  24. def slash[R](other: PathMatcher[R])(implicit join: Join[L, R]): PathMatcher[Out]
  25. def slash: PathMatcher[L]
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def tflatMap[R](f: (L) => Option[R])(implicit arg0: Tuple[R]): PathMatcher[R]
  28. def tmap[R](f: (L) => R)(implicit arg0: Tuple[R]): PathMatcher[R]
  29. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  30. def transform[R](f: (Matching[L]) => Matching[R])(implicit arg0: Tuple[R]): PathMatcher[R]
  31. def unary_!: PathMatcher0

    Operator alternative to PathMatchers.not

  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. def |[R >: L](other: PathMatcher[_ <: R])(implicit arg0: Tuple[R]): PathMatcher[R]

    Alias for or.

  36. def ~[R](other: PathMatcher[R])(implicit join: Join[L, R]): PathMatcher[Out]

    Alias for append.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from (Path) => Matching[L]

Inherited from AnyRef

Inherited from Any

Ungrouped