AstObjVisitor

ujson.AstTransformer.AstObjVisitor
class AstObjVisitor[T](build: T => I)(implicit factory: Factory[(String, I), T]) extends ObjVisitor[I, I]

Attributes

Graph
Supertypes
trait ObjVisitor[I, I]
trait ObjArrVisitor[I, I]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def subVisitor: Visitor[_, _]

Called on descent into elements.

Called on descent into elements.

The returned Visitor will be used to visit this branch of the json.

Attributes

def visitEnd(index: Int): I

Called on end of the object or array.

Called on end of the object or array.

Value parameters

index

json source position at the start of the '}' or ']' being visited

Attributes

Returns

the result of visiting this array or object

def visitKey(index: Int): Visitor[_, _]

Value parameters

index

json source position at the start of the key being visited

s

the value of the key

Attributes

def visitKeyValue(s: Any): Unit
def visitValue(v: I, index: Int): Unit

Called on completion of visiting an array element or object field value, with the produced result, T.

Called on completion of visiting an array element or object field value, with the produced result, T.

Value parameters

index

json source character position being visited

v

result of visiting a value in this object or arary (not the input value, this would have been passed to subVisitor)

Attributes

Inherited methods

def isObj: Boolean

Attributes

Returns

true if this is a json object false if this is a json array

Inherited from:
ObjVisitor
override def narrow: ObjVisitor[Any, J]

Casts T from _ to Any.

Casts T from _ to Any.

Attributes

Definition Classes
ObjVisitor -> ObjArrVisitor
Inherited from:
ObjVisitor