Class

org.coursera.naptime.path

NestedPathKeyParser

Related Doc: package path

Permalink

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])

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ::[H, TT >: :::[H, TailParseAsType] <: ParsedPathKey](resourcePath: ResourcePathParser[H]): NestedPathKeyParser[H, TT]

    Permalink

    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

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

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. val head: ResourcePathParser[H]

    Permalink

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

  11. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  15. def parse(path: String): UrlParseResult[:::[H, TailParseAsType]]

    Permalink
    Definition Classes
    NestedPathKeyParserPathKeyParser
  16. def parseFinalLevel(path: String): UrlParseResult[:::[Option[H], TailParseAsType]]

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

    Permalink
    Definition Classes
    AnyRef
  18. val tail: PathKeyParser[TailParseAsType]

    Permalink

    The rest of the parser chain.

  19. def toString(): String

    Permalink
    Definition Classes
    NestedPathKeyParser → AnyRef → Any
  20. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

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

Inherited from AnyRef

Inherited from Any

Ungrouped