Packages

t

reftree.core

GenericInstances

trait GenericInstances extends AnyRef

Generic derivation for ToRefTree

This works for case class-like types, where for each field an instance of ToRefTree exists or can be derived using this same facility.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GenericInstances
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class DerivationConfig[A](name: Option[(A) => String] = None, omittedFields: Set[String] = Set.empty[String], tweakedFields: Map[String, (A) => FieldUpdate] = Map.empty[String, A => DerivationConfig.FieldUpdate]) extends Product with Serializable

    A class that allows to configure how the derivation of ToRefTree for A is done

  2. trait GenericToRefTree[A, R] extends AnyRef

    We use a different typeclass to avoid defining nonsense ToRefTree instances

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. implicit def Generic CCons RefTree[A, K <: Symbol, H, T <: Coproduct](implicit headAsTree: Lazy[ToRefTree[H]], tailAsTree: GenericToRefTree[A, T]): GenericToRefTree[A, :+:[FieldType[K, H], T]]
  5. implicit def Generic CNil RefTree[A]: GenericToRefTree[A, CNil]
  6. implicit def Generic Coproduct RefTree[A <: AnyRef, R <: Coproduct](implicit generic: Aux[A, R], genericAsTree: Lazy[GenericToRefTree[A, R]]): ToRefTree[A]
  7. implicit def Generic HCons RefTree[A, K <: Symbol, H, T <: HList](implicit witness: Aux[K], headAsTree: Lazy[ToRefTree[H]], tailAsTree: GenericToRefTree[A, T], derivationConfig: DerivationConfig[A] = DerivationConfig[A]()): GenericToRefTree[A, ::[FieldType[K, H], T]]
  8. implicit def Generic HNil RefTree[A]: GenericToRefTree[A, HNil]
  9. implicit def Generic Product RefTree[A <: AnyRef, R <: HList](implicit generic: Aux[A, R], genericAsTree: Lazy[GenericToRefTree[A, R]], derivationConfig: DerivationConfig[A] = DerivationConfig[A]()): ToRefTree[A]
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. object DerivationConfig extends Serializable
  26. object GenericToRefTree

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped