scala.tools.nsc.io

CondPickler

abstract class CondPickler[T] extends Pickler[T]

A subclass of Pickler can indicate whether a particular value can be pickled by instances of this class.

Linear Supertypes
Pickler[T], AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CondPickler
  2. Pickler
  3. AnyRef
  4. Any
Implicitly
  1. by TildeDecorator
  2. by StringAdd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CondPickler(canPickle: (Any) ⇒ Boolean)

    canPickle

    The predicate that indicates whether a given value can be pickled by instances of this class.

Abstract Value Members

  1. abstract def pickle(wr: Writer, x: T): Unit

    Writes value in pickled form

    Writes value in pickled form

    wr

    the writer to which pickled form is written

    x

    the value to write

    Definition Classes
    Pickler
  2. abstract def unpickle(rd: Lexer): Unpickled[T]

    Reads value from pickled form.

    Reads value from pickled form.

    rd

    the lexer from which lexemes are read

    returns

    An UnpickleSuccess value if the current input corresponds to the kind of value that is unpickled by the current subclass of Pickler, an UnpickleFailure value otherwise.

    Definition Classes
    Pickler
    Exceptions thrown
    `Lexer.MalformedInput`

    if input is invalid, or if an Unpickle

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from CondPickler[T] to StringAdd[CondPickler[T]] performed by method StringAdd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (CondPickler[T], B)

    Implicit information
    This member is added by an implicit conversion from CondPickler[T] to ArrowAssoc[CondPickler[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def asClass[U <: T](c: Class[U]): CondPickler[T]

    A conditional pickler handling values of some Scala class.

    A conditional pickler handling values of some Scala class. It adds the class name as a label to the representation of the current pickler and

    c

    the class of values handled by this pickler.

    Definition Classes
    Pickler
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. val canPickle: (Any) ⇒ Boolean

    The predicate that indicates whether a given value can be pickled by instances of this class.

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def cond(p: (Any) ⇒ Boolean): CondPickler[T]

    A conditional pickler obtained from the current pickler.

    A conditional pickler obtained from the current pickler.

    p

    the condition to test to find out whether pickler can handle some Scala value.

    Definition Classes
    Pickler
  13. def ensuring(cond: (CondPickler[T]) ⇒ Boolean, msg: ⇒ Any): CondPickler[T]

    Implicit information
    This member is added by an implicit conversion from CondPickler[T] to Ensuring[CondPickler[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (CondPickler[T]) ⇒ Boolean): CondPickler[T]

    Implicit information
    This member is added by an implicit conversion from CondPickler[T] to Ensuring[CondPickler[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): CondPickler[T]

    Implicit information
    This member is added by an implicit conversion from CondPickler[T] to Ensuring[CondPickler[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): CondPickler[T]

    Implicit information
    This member is added by an implicit conversion from CondPickler[T] to Ensuring[CondPickler[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from CondPickler[T] to StringFormat[CondPickler[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  24. def labelled(label: String): Pickler[T]

    A pickler that adds a label to the current pickler, using the representation label ( <current pickler> )

    A pickler that adds a label to the current pickler, using the representation label ( <current pickler> )

    Definition Classes
    Pickler
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. def tryPickle(wr: Writer, x: Any): Boolean

    Pickles given value x if possible, as indicated by canPickle(x).

  31. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def wrapped[U](in: (T) ⇒ U)(out: (U) ⇒ T): Pickler[U]

    A pickler obtained from the current pickler by a pair of transformer functions

    A pickler obtained from the current pickler by a pair of transformer functions

    in

    the function that maps values handled by the current pickler to values handled by the wrapped pickler.

    out

    the function that maps values handled by the wrapped pickler to values handled by the current pickler.

    Definition Classes
    Pickler
  35. def |[V >: T, U <: V](that: ⇒ CondPickler[U]): CondPickler[V]

    A pickler obtained from this pickler and an alternative pickler.

    A pickler obtained from this pickler and an alternative pickler. To pickle a value, this pickler is tried first. If it cannot handle the object (as indicated by its canPickle test), then the alternative pickler is tried. To unpickle a value, this unpickler is tried first. If it cannot read the input (as indicated by a UnpickleFailure result), then the alternative pickler is tried.

    V

    The handled type of the returned pickler.

    U

    The handled type of the alternative pickler.

    that

    The alternative pickler.

  36. def ~[U](that: ⇒ Pickler[U]): Pickler[~[T, U]]

    A pickler representing a ~-pair of values as two consecutive pickled strings, separated by a comma.

    A pickler representing a ~-pair of values as two consecutive pickled strings, separated by a comma.

    that

    the second pickler which together with the current pickler makes up the pair this ~ that to be pickled.

    Definition Classes
    Pickler
  37. def [B](y: B): (CondPickler[T], B)

    Implicit information
    This member is added by an implicit conversion from CondPickler[T] to ArrowAssoc[CondPickler[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def ~[T](y: T): ~[CondPickler[T], T]

    Infix method that forms a ~-pair.

    Infix method that forms a ~-pair.

    Implicit information
    This member is added by an implicit conversion from CondPickler[T] to TildeDecorator[CondPickler[T]] performed by method TildeDecorator in scala.tools.nsc.io.Pickler.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (condPickler: TildeDecorator[CondPickler[T]]).~(y)
    Definition Classes
    TildeDecorator

Inherited from Pickler[T]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion TildeDecorator from CondPickler[T] to TildeDecorator[CondPickler[T]]

Inherited by implicit conversion StringAdd from CondPickler[T] to StringAdd[CondPickler[T]]

Inherited by implicit conversion StringFormat from CondPickler[T] to StringFormat[CondPickler[T]]

Inherited by implicit conversion Ensuring from CondPickler[T] to Ensuring[CondPickler[T]]

Inherited by implicit conversion ArrowAssoc from CondPickler[T] to ArrowAssoc[CondPickler[T]]

Ungrouped