object DerivedDecoder extends DerivedDecoderLowPriority
As usual the derivation process is as follows:
- let shapeless represent our type A in terms of Coproduct (if it is a sealed trait) or HList (if it is a case class) ;
- define how to decode Coproducts and HLists using implicit definitions
- Source
- DerivedDecoder.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DerivedDecoder
- DerivedDecoderLowPriority
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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[A](implicit decoder: DerivedDecoder[A, A]): BSONDocumentReader[A]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- implicit def decodeCNil[A](implicit labels: Labels[A]): DerivedDecoder[A, CNil]
- implicit def decodeCoproduct[A, K <: Symbol, L, R <: Coproduct](implicit typeName: Aux[K], decodeL: Lazy[BSONDocumentReader[L]], decodeR: Lazy[DerivedDecoder[A, R]]): DerivedDecoder[A, :+:[FieldType[K, L], R]]
-
implicit
def
decodeCoproductDerived[A, K <: Symbol, L, R <: Coproduct](implicit typeName: Aux[K], decodeL: Lazy[DerivedDecoder[_, L]], decodeR: Lazy[DerivedDecoder[A, R]]): DerivedDecoder[A, :+:[FieldType[K, L], R]]
- Definition Classes
- DerivedDecoderLowPriority
-
implicit
def
decodeGeneric[A, R](implicit gen: Aux[A, R], derivedDecoder: Lazy[DerivedDecoder[A, R]]): DerivedDecoder[A, A]
- Definition Classes
- DerivedDecoderLowPriority
- implicit def decodeHNil[A]: DerivedDecoder[A, HNil]
- implicit def decodeLabelledHList[A, K <: Symbol, H, T <: HList](implicit fieldName: Aux[K], decodeH: Lazy[BSONReader[_ <: BSONValue, H]], decodeT: Lazy[DerivedDecoder[A, T]]): DerivedDecoder[A, ::[FieldType[K, H], T]]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )