package compiler
- Alphabetic
- Public
- All
Type Members
- case class Comment(comment: String) extends Product with Serializable
A comment from the routes file.
- case class DynamicPart(name: String, constraint: String, encode: Boolean) extends PathPart with Positional with Product with Serializable
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.
- case class HandlerCall(packageName: Option[String], controller: String, instantiate: Boolean, method: String, parameters: Option[Seq[Parameter]]) extends Positional with Product with Serializable
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.
- case class HttpVerb(value: String) extends Product with Serializable
An HTTP verb
- case class Include(prefix: String, router: String) extends Rule with Product with Serializable
An include for another router
An include for another router
- prefix
The path prefix for the include
- router
The router to route to
- case class Modifier(value: String) extends Product with Serializable
A modifier tag in the routes file
- case class Parameter(name: String, typeName: String, fixed: Option[String], default: Option[String]) extends Positional with Product with Serializable
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.
- trait PathPart extends AnyRef
A part of the path
- case class PathPattern(parts: Seq[PathPart]) extends Product with Serializable
A complete path pattern, consisting of a sequence of path parts.
- case class Route(verb: HttpVerb, path: PathPattern, call: HandlerCall, comments: Seq[Comment] = Seq.empty, modifiers: Seq[Modifier] = Seq.empty) extends Rule with Product with Serializable
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
- case class RoutesCompilationError(source: File, message: String, line: Option[Int], column: Option[Int]) extends Product with Serializable
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
- trait RoutesGenerator extends AnyRef
- case class RoutesSourceInfo(source: String, date: String) extends Product with Serializable
Information about the routes source file
- sealed trait Rule extends Positional
A routing rule
- class ScalaContent extends BufferedContent[ScalaContent]
Twirl scala content type
- case class StaticPart(value: String) extends PathPart with Product with Serializable
A static part of the path, which is matched as is.
Value Members
- object InjectedRoutesGenerator extends RoutesGenerator
A routes generator that generates dependency injected routers
- object Parameter extends Serializable
- object RoutesCompiler
provides a compiler for routes
- object RoutesFileParser
- object ScalaFormat extends Format[ScalaContent]
Twirl Scala format