Class/Object

japgolly.scalajs.react.extra.router.StaticDsl

RouteB

Related Docs: object RouteB | package StaticDsl

Permalink

class RouteB[A] extends RouteCommon[RouteB, A]

A fragment of a route. Can be composed with other fragments.

Linear Supertypes
RouteCommon[RouteB, A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RouteB
  2. RouteCommon
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RouteB(regex: String, matchGroups: Int, parse: ((Int) ⇒ String) ⇒ Option[A], build: (A) ⇒ String)

    Permalink

    matchGroups

    The number of matches that regex will capture.

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def /[B](next: RouteB[B])(implicit c: Composition[A, B]): RouteB[C]

    Permalink
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val build: (A) ⇒ String

    Permalink
  7. macro def caseClass[B]: RouteB[B]

    Permalink

    Maps the captures values of the route to a case class.

  8. macro def caseClassDebug[B]: RouteB[B]

    Permalink

    Same as caseClass except the code generated by the macro is printed to stdout.

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def const[B](b: B)(implicit ev: =:=[A, Unit], ev2: =:=[Unit, A]): RouteB[B]

    Permalink
    Definition Classes
    RouteCommon
  11. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def filter(f: (A) ⇒ Boolean): RouteB[A]

    Permalink
    Definition Classes
    RouteCommon
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  18. final def mapInput[B >: A](f: (B) ⇒ A): RouteB[B]

    Permalink
    Definition Classes
    RouteCommon
  19. final def mapParsed[B <: A](f: (A) ⇒ B): RouteB[B]

    Permalink
    Definition Classes
    RouteCommon
  20. val matchGroups: Int

    Permalink

    The number of matches that regex will capture.

  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def option: RouteB[Option[A]]

    Permalink
  25. val parse: ((Int) ⇒ String) ⇒ Option[A]

    Permalink
  26. def parseThen(f: (Option[A]) ⇒ Option[A]): RouteB[A]

    Permalink
    Definition Classes
    RouteBRouteCommon
  27. def pmap[B](b: (A) ⇒ Option[B])(a: (B) ⇒ A): RouteB[B]

    Permalink

    Prism map.

    Prism map.

    Some values of A can be turned into a Bs, some fail (in which case the route is considered non-matching).

    All Bs can be turned back into As.

    Definition Classes
    RouteBRouteCommon
  28. val regex: String

    Permalink
  29. final def route: Route[A]

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

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    RouteB → AnyRef → Any
  32. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def xmap[B](b: (A) ⇒ B)(a: (B) ⇒ A): RouteB[B]

    Permalink

    Exponential map.

    Exponential map.

    Any A can be turned into a B and vice versa.

    Definition Classes
    RouteCommon
  36. def ~[B](next: RouteB[B])(implicit c: Composition[A, B]): RouteB[C]

    Permalink

Inherited from RouteCommon[RouteB, A]

Inherited from AnyRef

Inherited from Any

Ungrouped