Trait

ujson

AstTransformer

Related Doc: package ujson

Permalink

trait AstTransformer[I] extends Transformer[I] with Visitor[I, I]

Linear Supertypes
Visitor[I, I], Transformer[I], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AstTransformer
  2. Visitor
  3. Transformer
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class AstArrVisitor[T[_]] extends ArrVisitor[I, I]

    Permalink
  2. class AstObjVisitor[T] extends ObjVisitor[I, I]

    Permalink

Abstract Value Members

  1. abstract def transform[T](j: I, f: Visitor[_, T]): T

    Permalink
    Definition Classes
    Transformer
  2. abstract def visitArray(index: Int): ArrVisitor[I, I]

    Permalink

    index

    json source position at the start of the [ being visited

    returns

    a Visitor used for visiting the elements of the array

    Definition Classes
    Visitor
  3. abstract def visitFalse(index: Int): I

    Permalink

    index

    json source position at the start of the false being visited

    Definition Classes
    Visitor
  4. abstract def visitNull(index: Int): I

    Permalink

    index

    json source position at the start of the null being visited

    Definition Classes
    Visitor
  5. abstract def visitNum(s: CharSequence, decIndex: Int, expIndex: Int, index: Int): I

    Permalink

    Visit the number in its text representation.

    Visit the number in its text representation.

    s

    unparsed text representation of the number.

    decIndex

    index of the ., relative to the start of the CharSequence, or -1 if omitted

    expIndex

    index of e or E relative to the start of the CharSequence, or -1 if omitted

    index

    json source position at the start of the number being visited

    Definition Classes
    Visitor
    See also

    Js.visitNum() for an example of parsing into numeric types

  6. abstract def visitObject(index: Int): ObjVisitor[I, I]

    Permalink

    index

    json source position at the start of the { being visited

    returns

    a ObjVisitor used for visiting the keys/values of the object

    Definition Classes
    Visitor
  7. abstract def visitString(s: CharSequence, index: Int): I

    Permalink

    s

    the text string being visited

    index

    json source position at the start of the string being visited

    Definition Classes
    Visitor
  8. abstract def visitTrue(index: Int): I

    Permalink

    index

    json source position at the start of the true being visited

    Definition Classes
    Visitor

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(t: Transformable): I

    Permalink
    Definition Classes
    Visitor
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  18. def transformArray[T](f: Visitor[_, T], items: TraversableOnce[I]): T

    Permalink
  19. def transformObject[T](f: Visitor[_, T], items: TraversableOnce[(String, I)]): T

    Permalink
  20. def transformable[T](j: I): fromTransformer[I]

    Permalink
    Definition Classes
    Transformer
  21. def visitArray(): ArrVisitor[I, I]

    Permalink

    Version of visitArray() without source index information.

    Version of visitArray() without source index information.

    returns

    a Visitor used for visiting the elements of the array

    Definition Classes
    Visitor
  22. def visitFalse(): I

    Permalink
    Definition Classes
    Visitor
  23. def visitNull(): I

    Permalink
    Definition Classes
    Visitor
  24. def visitNum(s: CharSequence, decIndex: Int, expIndex: Int): I

    Permalink

    Visit the number in its text representation, without source index information.

    Visit the number in its text representation, without source index information.

    s

    unparsed text representation of the number.

    decIndex

    index of the ., relative to the start of the CharSequence, or -1 if omitted

    expIndex

    index of e or E relative to the start of the CharSequence, or -1 if omitted

    Definition Classes
    Visitor
    See also

    Js.visitNum() for an example of parsing into numeric types

  25. def visitNumRaw(d: Double, index: Int): I

    Permalink

    Optional handler for raw double values; can be overriden for performance in cases where you're translating directly between numbers to avoid the overhead of stringifying and re-parsing your numbers (e.g.

    Optional handler for raw double values; can be overriden for performance in cases where you're translating directly between numbers to avoid the overhead of stringifying and re-parsing your numbers (e.g. the WebJson transformer gets raw doubles from the underlying Json.parse).

    Delegates to visitNum if not overriden

    Unused by raw json parsers such as ByteBasedParser or CharBasedParser.

    d

    the input number

    index

    json source position at the start of the number being visited

    Definition Classes
    Visitor
  26. def visitNumRawString(s: String, index: Int): I

    Permalink

    Convenience methods to help you compute the decimal-point-index and exponent-index of an arbitrary numeric string

    Convenience methods to help you compute the decimal-point-index and exponent-index of an arbitrary numeric string

    s

    the text string being visited

    index

    json source position at the start of the string being visited

    Definition Classes
    Visitor
  27. def visitObject(): ObjVisitor[I, I]

    Permalink

    returns

    a ObjVisitor used for visiting the keys/values of the object

    Definition Classes
    Visitor
  28. def visitString(s: CharSequence): I

    Permalink

    s

    the text string being visited

    Definition Classes
    Visitor
  29. def visitTrue(): I

    Permalink
    Definition Classes
    Visitor
  30. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Visitor[I, I]

Inherited from Transformer[I]

Inherited from AnyRef

Inherited from Any

Ungrouped