c

org.coursera.naptime.path

NestedPathKeyParser

final case class NestedPathKeyParser[+H, TailParseAsType <: ParsedPathKey](head: ResourcePathParser[H], tail: PathKeyParser[TailParseAsType]) extends PathKeyParser[:::[H, TailParseAsType]] with Product with Serializable

HCons for parsers - includes an extra type parameter because we care about both the type we will parse as, as well as the type of the chain itself.

H

The type the head of the chain will parse as.

TailParseAsType

The tail of the chain will parse as this type

head

All information needed to parse from a URL something of the type H

tail

The rest of the parser chain.

Linear Supertypes
Serializable, Serializable, Product, Equals, PathKeyParser[:::[H, TailParseAsType]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NestedPathKeyParser
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. PathKeyParser
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NestedPathKeyParser(head: ResourcePathParser[H], tail: PathKeyParser[TailParseAsType])

    head

    All information needed to parse from a URL something of the type H

    tail

    The rest of the parser chain.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def ::[H, TT >: :::[H, TailParseAsType] <: ParsedPathKey](resourcePath: ResourcePathParser[H]): NestedPathKeyParser[H, TT]

    Concatenates a new parser on the front of the chain (nesting that parser underneath the others)

    Concatenates a new parser on the front of the chain (nesting that parser underneath the others)

    H

    The new resource has path parameters of this type.

    TT

    This type parameter exists to work around the covariance/contravariance issues with the return type of this function.

    resourcePath

    The resource path (and parse information) for the new resource.

    returns

    The new chain.

    Definition Classes
    PathKeyParser
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. val head: ResourcePathParser[H]
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def parse(path: String): UrlParseResult[:::[H, TailParseAsType]]
    Definition Classes
    NestedPathKeyParserPathKeyParser
  16. def parseFinalLevel(path: String): UrlParseResult[:::[Option[H], TailParseAsType]]
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. val tail: PathKeyParser[TailParseAsType]
  19. def toString(): String
    Definition Classes
    NestedPathKeyParser → AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from PathKeyParser[:::[H, TailParseAsType]]

Inherited from AnyRef

Inherited from Any

Ungrouped