upickle.core.Visitor
See theVisitor companion object
Standard set of hooks uPickle uses to traverse over a structured data. A superset of the JSON, MessagePack, and Scala object hierarchies, since it needs to support efficiently processing all of them.
Note that some parameters are un-set (-1) when not available; e.g. visitArray
's length
is not set when parsing JSON input (since it cannot be known up front) and the various index
parameters are not set when traversing Scala object hierarchies.
When expecting to deal with a subset of the methods; it is common to forward the ones you don't care about to the ones you do; e.g. JSON visitors would forward all visitFloat32
/visitInt
/etc. methods to visitFloat64
Type parameters
- J
-
the result of visiting elements (e.g. a json AST or side-effecting writer)
- T
-
???
Attributes
- See also
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Builderobject NoOpVisitorobject StringVisitortrait SimpleReader[T]trait TaggedReadWriter[T]class Leaf[T]class Node[T]trait TaggedReader[T]class Leaf[T]class Node[T]trait Reader[T]trait ReadWriter[T]class Delegate[T]
Members list
In this article