contextual
package contextual
- Alphabetic
- Public
- All
Type Members
-
trait
Context
extends AnyRef
A
Context
describes the nature of the position in an interpolated string where a substitution is made, and determines how values of a particular type should be interpreted in the given position. -
class
Embedder
[CC <: (Context, Context), V, R, I <: Interpolator] extends AnyRef
An
Embedder
defines, for anInterpolator
,I
, a typeV
should be converted to the common input type 'R', when substituted into different context positions. -
case class
InterpolationError
(part: Int, offset: Int, message: String) extends Exception with Product with Serializable
Represents a compile-time failure in interpolation.
-
trait
Interpolator
extends Parts
An
Interpolator
defines the compile-time and runtime behavior when interpreting an interpolated string. -
class
Prefix
[C <: Context, P <: Interpolator { type Ctx = C }] extends AnyRef
A
Prefix
represents the attachment of anInterpolator
to aStringContext
, typically using an implicit class.A
Prefix
represents the attachment of anInterpolator
to aStringContext
, typically using an implicit class. It has only a single method,apply
, with a signature that's appropriate for fitting the shape of a desugared interpolated string application. -
class
Transition
[-CC <: (Context, Context), -Value, +Input] extends AnyRef
A
Transition
specifies for a particularContext
how a value of typeValue
should be converted into the appropriateInput
type to anInterpolator
, and how the application of the value should change theContext
in the interpolated string.
Value Members
- object Interpolator
-
object
Macros
Object containing the main macro providing Contextual's functionality.
- object Prefix
-
object
Transition
Factory object for creating
Transitions
.