class Embedder[ContextPair <: (Context, Context), Value, Input, InterpolatorType <: Interpolator] extends AnyRef
An Embedder defines, for an Interpolator, InterpolatorType
, a type Value
should
be converted to the common input type Input
, when substituted into different context
positions. These should be created using the Interpolator#embed method.
- ContextPair
the intersection of "before" and "after" contexts, inferred from the least upper-bound of the Cases
- Value
the type this Embedder is defining substitution functions for
- Input
the common input type to which all substitutions are converted for this Interpolator
- InterpolatorType
the Interpolator singleton type for which this Embedder is defining substitution functions
- Alphabetic
- By Inheritance
- Embedder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[HoleContext](holeContext: HoleContext)(implicit evidence: <:<[ContextPair, (HoleContext, Context)]): (Value) ⇒ Input
Retrieve the conversion function from the
Value
type to theInput
type for the specified Context.Retrieve the conversion function from the
Value
type to theInput
type for the specified Context.- HoleContext
the singleton type corresponding to the context of the hole
- holeContext
the context of the hole for which to retrieve the conversion function
- returns
the function for converting the
Value
type to anInput
for the specified Context
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val cases: Seq[Case[ContextPair, Value, Input]]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )