class CaseCodecFactory extends PropertyDebugModeEnabler
- Alphabetic
- By Inheritance
- CaseCodecFactory
- PropertyDebugModeEnabler
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new CaseCodecFactory(c: Context)
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val c: Context
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def debuglog(c: Context)(message: String): Unit
- Attributes
- protected
- Definition Classes
- PropertyDebugModeEnabler
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromCaseClass[T](implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[T]): scala.reflect.macros.Universe.Expr[Codec[T]]
Create Codec[T] instance.
Create Codec[T] instance. T must have apply and unapply or unapplySeq implemented, and the argument type of apply and the return parameter of unapply must match. In other words, T is a case class.
If the above conditions are satisfied, there is a possibility that all codecs that are required internally will be built.v
If there is an implicit internal Codec, it will be used, otherwise it will be automatically generated from apply / unapply
- [ Note ] If recursive resolution is not possible and there are not enough user definitions to make up for it, a compilation error will occur.
For example, there is a trait field declaration inside, a class that does not have apply / unapply, or a type class that is not supported by default. In that case, you need to declare a custom Codec by the user.
- T
Codec build type
- def fromInferOrCase[T](implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[T]): scala.reflect.macros.Universe.Expr[Codec[T]]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def recall[T](q: scala.reflect.macros.Universe.Symbol): scala.reflect.macros.blackbox.Context.Expr[Codec[T]]
- Attributes
- protected
- def recall[T](q: scala.reflect.macros.Universe.Type): scala.reflect.macros.blackbox.Context.Expr[Codec[T]]
- Attributes
- protected
- def recall[T](q: scala.reflect.macros.Universe.WeakTypeTag[T]): scala.reflect.macros.blackbox.Context.Expr[Codec[T]]
- Attributes
- protected
- 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(classOf[java.lang.InterruptedException])
- 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()