Class

scala.pickling.generator

CaseClassPickling

Related Doc: package generator

Permalink

class CaseClassPickling extends PicklingAlgorithm

this algorithm inspects symbols to determine if we have a scala case class, and generates the pickling code for it.

This ONLY handles case-class types, it will not handle ADTS, but can generate code for non-final case classes.

Linear Supertypes
PicklingAlgorithm, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CaseClassPickling
  2. PicklingAlgorithm
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CaseClassPickling(allowReflection: Boolean, careAboutSubclasses: Boolean)

    Permalink

Type Members

  1. case class CaseClassInfo(constructor: IrConstructor, fields: Seq[FieldInfo]) extends Product with Serializable

    Permalink
  2. case class FieldInfo(name: String, sym: IrMethod) extends Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def allVars(cls: IrClass): Seq[IrMethod]

    Permalink
  5. val allowReflection: Boolean

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val careAboutSubclasses: Boolean

    Permalink
  8. def checkFactoryImpl(tpe: IrClass, logger: AlgorithmLogger): AlgorithmResult

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def generate(tpe: IrClass, logger: AlgorithmLogger): AlgorithmResult

    Permalink

    Attempts to construct pickling logic fora given type.

    Attempts to construct pickling logic fora given type.

    Definition Classes
    CaseClassPickling → PicklingAlgorithm
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from PicklingAlgorithm

Inherited from AnyRef

Inherited from Any

Ungrouped