Package

play.routes

compiler

Permalink

package compiler

Visibility
  1. Public
  2. All

Type Members

  1. case class Comment(comment: String) extends Product with Serializable

    Permalink

    A comment from the routes file.

  2. case class DynamicPart(name: String, constraint: String, encode: Boolean) extends PathPart with Positional with Product with Serializable

    Permalink

    A dynamic part, which gets extracted into a parameter.

    A dynamic part, which gets extracted into a parameter.

    name

    The name of the parameter that this part of the path gets extracted into.

    constraint

    The regular expression used to match this part.

    encode

    Whether this part should be encoded or not.

  3. case class HandlerCall(packageName: String, controller: String, instantiate: Boolean, method: String, parameters: Option[Seq[Parameter]]) extends Positional with Product with Serializable

    Permalink

    A call to the handler.

    A call to the handler.

    packageName

    The handlers package.

    controller

    The controllers class name.

    instantiate

    Whether the controller needs to be instantiated dynamically.

    method

    The method to invoke on the controller.

    parameters

    The parameters to pass to the method.

  4. case class HttpVerb(value: String) extends Product with Serializable

    Permalink

    An HTTP verb

  5. case class Include(prefix: String, router: String) extends Rule with Product with Serializable

    Permalink

    An include for another router

    An include for another router

    prefix

    The path prefix for the include

    router

    The router to route to

  6. case class Parameter(name: String, typeName: String, fixed: Option[String], default: Option[String]) extends Positional with Product with Serializable

    Permalink

    A parameter for a controller method.

    A parameter for a controller method.

    name

    The name of the parameter.

    typeName

    The type of the parameter.

    fixed

    The fixed value for the parameter, if defined.

    default

    A default value for the parameter, if defined.

  7. trait PathPart extends AnyRef

    Permalink

    A part of the path

  8. case class PathPattern(parts: Seq[PathPart]) extends Product with Serializable

    Permalink

    A complete path pattern, consisting of a sequence of path parts.

  9. case class Route(verb: HttpVerb, path: PathPattern, call: HandlerCall, comments: List[Comment] = List()) extends Rule with Product with Serializable

    Permalink

    A route

    A route

    verb

    The verb (GET/POST etc)

    path

    The path of the route

    call

    The call to make

    comments

    The comments above the route

  10. case class RoutesCompilationError(source: File, message: String, line: Option[Int], column: Option[Int]) extends Product with Serializable

    Permalink

    A routes compilation error

    A routes compilation error

    source

    The source of the error

    message

    The error message

    line

    The line that the error occurred on

    column

    The column that the error occurred on

  11. trait RoutesGenerator extends AnyRef

    Permalink
  12. case class RoutesSourceInfo(source: String, date: String) extends Product with Serializable

    Permalink

    Information about the routes source file

  13. sealed trait Rule extends Positional

    Permalink

    A routing rule

  14. class ScalaContent extends BufferedContent[ScalaContent]

    Permalink

    Twirl scala content type

  15. case class StaticPart(value: String) extends PathPart with Product with Serializable

    Permalink

    A static part of the path, which is matched as is.

Value Members

  1. object InjectedRoutesGenerator extends RoutesGenerator

    Permalink

    A routes generator that generates dependency injected routers

  2. object RoutesCompiler

    Permalink

    provides a compiler for routes

  3. object RoutesFileParser

    Permalink
  4. object ScalaFormat extends Format[ScalaContent]

    Permalink

    Twirl Scala format

  5. object StaticRoutesGenerator extends RoutesGenerator

    Permalink

    A routes generator that generates static routers

  6. package inject

    Permalink
  7. package static

    Permalink

Ungrouped