CaseClassReadWriters

upickle.implicits.CaseClassReadWriters
trait CaseClassReadWriters extends Types

Basic functionality to be able to read and write objects. Kept as a trait so other internal files can use it, while also mixing it into the upickle package to form the public API1

Attributes

Graph
Supertypes
trait Types
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Classlikes

abstract class CaseClassReader[V] extends SimpleReader[V]

Attributes

Supertypes
trait SimpleReader[V]
trait SimpleVisitor[Any, V]
trait Reader[V]
trait Visitor[Any, V]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait CaseClassWriter[V] extends ObjectWriter[V]

Attributes

Supertypes
trait ObjectWriter[V]
trait Writer[V]
class Object
trait Matchable
class Any
Known subtypes
class SingletonWriter[T]
class SingletonReader[T](t: T) extends CaseClassReader[T]

Attributes

Supertypes
class CaseClassReader[T]
trait SimpleReader[T]
trait SimpleVisitor[Any, T]
trait Reader[T]
trait Visitor[Any, T]
class Object
trait Matchable
class Any
Show all
class SingletonWriter[T](f: T) extends CaseClassWriter[T]

Attributes

Supertypes
trait CaseClassWriter[T]
trait ObjectWriter[T]
trait Writer[T]
class Object
trait Matchable
class Any
Show all

Inherited classlikes

trait ObjectWriter[T] extends Writer[T]

Attributes

Inherited from:
Types
Supertypes
trait Writer[T]
class Object
trait Matchable
class Any
Known subtypes
trait CaseClassWriter[V]
class SingletonWriter[T]
object ReadWriter

Attributes

Inherited from:
Types
Supertypes
class Object
trait Matchable
class Any
trait ReadWriter[T] extends Reader[T], Writer[T]

A combined Reader and Writer, along with some utility methods.

A combined Reader and Writer, along with some utility methods.

Attributes

Inherited from:
Types
Supertypes
trait Writer[T]
trait Reader[T]
trait Visitor[Any, T]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait TaggedReadWriter[T]
object Reader

Attributes

Inherited from:
Types
Supertypes
class Object
trait Matchable
class Any
trait Reader[T] extends Visitor[Any, T]

Represents the ability to read a value of type T.

Represents the ability to read a value of type T.

A thin wrapper around Visitor, but needs to be it's own class in order to make type inference automatically pick up it's implicit values.

Attributes

Inherited from:
Types
Supertypes
trait Visitor[Any, T]
class Object
trait Matchable
class Any
Known subtypes
trait ReadWriter[T]
trait TaggedReadWriter[T]
trait SimpleReader[T]
class CaseClassReader[V]
class SingletonReader[T]
trait TaggedReader[T]
class TupleNReader[V]
trait NumericReader[T]
class SeqLikeReader[C, T]
Show all
trait SimpleReader[T] extends Reader[T], SimpleVisitor[Any, T]

A Reader that throws an error for all the visit methods which it does not define, letting you only define the handlers you care about.

A Reader that throws an error for all the visit methods which it does not define, letting you only define the handlers you care about.

Attributes

Inherited from:
Types
Supertypes
trait SimpleVisitor[Any, T]
trait Reader[T]
trait Visitor[Any, T]
class Object
trait Matchable
class Any
Show all
Known subtypes
class CaseClassReader[V]
class SingletonReader[T]
trait TaggedReadWriter[T]
trait TaggedReader[T]
class TupleNReader[V]
trait NumericReader[T]
class SeqLikeReader[C, T]
Show all

Attributes

Inherited from:
Types
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
Types
Supertypes
trait TaggedWriter[T]
trait TaggedReader[T]
trait SimpleReader[T]
trait SimpleVisitor[Any, T]
trait ReadWriter[T]
trait Writer[T]
trait Reader[T]
trait Visitor[Any, T]
class Object
trait Matchable
class Any
Show all
object TaggedReader

Attributes

Inherited from:
Types
Supertypes
class Object
trait Matchable
class Any
trait TaggedReader[T] extends SimpleReader[T]

Attributes

Inherited from:
Types
Supertypes
trait SimpleReader[T]
trait SimpleVisitor[Any, T]
trait Reader[T]
trait Visitor[Any, T]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait TaggedReadWriter[T]
object TaggedWriter

Attributes

Inherited from:
Types
Supertypes
class Object
trait Matchable
class Any
trait TaggedWriter[T] extends Writer[T]

Attributes

Inherited from:
Types
Supertypes
trait Writer[T]
class Object
trait Matchable
class Any
Known subtypes
trait TaggedReadWriter[T]
object Writer

Attributes

Inherited from:
Types
Supertypes
class Object
trait Matchable
class Any
trait Writer[T]

Represents the ability to write a value of type T.

Represents the ability to write a value of type T.

Generally nothing more than a way of applying the T to a Visitor, along with some utility methods

Attributes

Inherited from:
Types
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait ObjectWriter[T]
trait CaseClassWriter[V]
class SingletonWriter[T]
trait ReadWriter[T]
trait TaggedReadWriter[T]
trait TaggedWriter[T]
class TupleNWriter[V]
Show all

Value members

Inherited methods

def taggedArrayContext[T](taggedReader: TaggedReader[T], index: Int): ArrVisitor[Any, T]

Attributes

Inherited from:
Types
def taggedExpectedMsg: String

Attributes

Inherited from:
Types
def taggedObjectContext[T](taggedReader: TaggedReader[T], index: Int): ObjVisitor[Any, T]

Attributes

Inherited from:
Types
def taggedWrite[T, R](w: ObjectWriter[T], tag: String, out: Visitor[_, R], v: T): R

Attributes

Inherited from:
Types