object Aspect extends Serializable
- Source
- Aspect.scala
- Alphabetic
- By Inheritance
- Aspect
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait Advice[F[_], G[_]] extends Serializable
An Aspect.Advice represents the effect of a particular Aspect on a single value (the
target
).An Aspect.Advice represents the effect of a particular Aspect on a single value (the
target
). It witnesses that for some valueF[A]
there exists a compatible type class / constraint instanceG[A]
. The target typeA
is existentially quantified to enable capturing all arguments lists of a method.- F
The carrier type of the target value (
Eval
for method arguments).- G
The type class / constraint that defines the behaviour of this Aspect.Advice.
- type Codomain[Alg[_[_]], F[_]] = Aspect[Alg, Trivial, F]
- type Domain[Alg[_[_]], F[_]] = Aspect[Alg, F, Trivial]
- type Function[Alg[_[_]], F[_]] = Aspect[Alg, F, F]
- final case class Weave[F[_], Dom[_], Cod[_], A](algebraName: String, domain: List[List[Advice[Eval, Dom]]], codomain: Aux[F, Cod, A]) extends Product with Serializable
An Aspect.Weave represents a reified cross-cutting concern for a single method of an algebra.
An Aspect.Weave represents a reified cross-cutting concern for a single method of an algebra. It can be applied to all method arguments, result, or both. Its behaviour is driven by type classes.
- F
The underlying algebra carrier type which is the result of forwarding the method call.
- Dom
Type class / constraint that should exist for all parameter types except implicits (domain).
- Cod
Type class / constraint that should exist for the return type of the method (codomain).
- A
Return type of the method.
- domain
Aspect.Advice
for all arguments except implicits. Target inEval
to capture by-name arguments.- codomain
Aspect.Advice
for the result of the method. Target inF
- the underlying algebra carrier.
- See also
Weave.Domain
,Weave.Codomain
andWeave.Function
for convenient type aliases.
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[Alg[_[_]], Dom[_], Cod[_]](implicit aspect: Aspect[Alg, Dom, Cod]): Aspect[Alg, Dom, Cod]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def codomain[Alg[_[_]], F[_]](implicit aspect: Codomain[Alg, F]): Codomain[Alg, F]
- def domain[Alg[_[_]], F[_]](implicit aspect: Domain[Alg, F]): Domain[Alg, F]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def function[Alg[_[_]], F[_]](implicit aspect: Function[Alg, F]): Function[Alg, F]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- 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() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object Advice extends Serializable
- object Weave extends Serializable