scalaxy

reified

package reified

Scalaxy/Reified: the reify method in this package captures it's compile-time argument's AST, allowing / preserving values captured outside its expression.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. reified
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. final class Reified[A] extends HasReified[A]

    Reified value which can be created by scalaxy.reified.reified.

    Reified value which can be created by scalaxy.reified.reified. This object retains the runtime value passed to scalaxy.reified.reified as well as its compile-time AST.

  2. implicit class ReifiedFunction1[T1, R] extends HasReified[(T1) ⇒ R]

    Wrapper that provides Function1-like methods to a reified Function1 value.

  3. implicit class ReifiedFunction2[T1, T2, R] extends HasReified[(T1, T2) ⇒ R]

    Wrapper that provides Function2-like methods to a reified Function2 value.

Value Members

  1. implicit macro def hasReifiedValueToReifiedValue[A](r: HasReified[A])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A]): Reified[A]

    Implicitly extract reified value from its wrappers (such as ReifiedFunction1, ReifiedFunction2).

  2. implicit macro def hasReifiedValueToValue[A](r: HasReified[A])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A]): A

    Implicitly convert reified value to their original non-reified value.

  3. implicit macro def reified[A](v: A)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A]): Reified[A]

    Reify a value (including functions), preserving the original value and keeping track of the values it captures from the scope of its expression.

    Reify a value (including functions), preserving the original value and keeping track of the values it captures from the scope of its expression. This allows for runtime processing of the value's AST (being able to capture external values makes this method more flexible than Universe.reify). Compile-time error are raised when an external reference cannot be captured safely (vars and lazy vals are not considered safe, for instance). Captured values are inlined in the reified value's AST with a conversion function, which can be customized (by default, it handles constants, arrays, immutable collections, tuples and options).

Inherited from AnyRef

Inherited from Any

Ungrouped