Types

upickle.core.Types
trait 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
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

trait ObjectWriter[T] extends Writer[T]

Attributes

Supertypes
trait Writer[T]
class Object
trait Matchable
class Any
object ReadWriter

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
ReadWriter.type
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

Companion
object
Supertypes
trait Writer[T]
trait Reader[T]
trait Visitor[Any, T]
class Object
trait Matchable
class Any
Show all
Known subtypes
class Delegate[T]
trait TaggedReadWriter[T]
class Leaf[T]
class Node[T]
object Reader

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Reader.type
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

Companion
object
Supertypes
trait Visitor[Any, T]
class Object
trait Matchable
class Any
Known subtypes
trait ReadWriter[T]
class Delegate[T]
trait TaggedReadWriter[T]
class Leaf[T]
class Node[T]
class Delegate[T, V]
class MapReader[T, V, Z]
trait SimpleReader[T]
trait TaggedReader[T]
class Leaf[T]
class Node[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

Supertypes
trait SimpleVisitor[Any, T]
trait Reader[T]
trait Visitor[Any, T]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait TaggedReadWriter[T]
class Leaf[T]
class Node[T]
trait TaggedReader[T]
class Leaf[T]
class Node[T]
Show all

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
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
Known subtypes
class Leaf[T]
class Node[T]
object TaggedReader

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait TaggedReader[T] extends SimpleReader[T]

Attributes

Companion
object
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]
class Leaf[T]
class Node[T]
class Leaf[T]
class Node[T]
object TaggedWriter

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait TaggedWriter[T] extends Writer[T]

Attributes

Companion
object
Supertypes
trait Writer[T]
class Object
trait Matchable
class Any
Known subtypes
trait TaggedReadWriter[T]
class Leaf[T]
class Node[T]
class Leaf[T]
class Node[T]
object Writer

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Writer.type
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

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait ObjectWriter[T]
trait ReadWriter[T]
class Delegate[T]
trait TaggedReadWriter[T]
class Leaf[T]
class Node[T]
trait TaggedWriter[T]
class Leaf[T]
class Node[T]
class MapWriter[U, T]
class MapWriterNulls[U, T]
Show all

Value members

Abstract methods

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

Concrete methods

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