com.rojoma.json.v3.zipper

JsonZipper

sealed trait JsonZipper extends ZipperLike

A zipper that points somewhere in the tree defined by a com.rojoma.json.v3.ast.JValue. It can be used to move around or update the tree in a purely functional manner.

See also

com.rojoma.json.v3.jpath.JPath for a higher-level read-only interface to this functionality.

Linear Supertypes
ZipperLike, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JsonZipper
  2. ZipperLike
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type ValueType <: JValue

Abstract Value Members

  1. abstract def next: Option[JsonZipper]

    Move to the next element in the parent array.

    Move to the next element in the parent array.

    returns

    A com.rojoma.json.v3.zipper.JsonZipper pointing at the next element, or None if there is no next element or if the parent is not a com.rojoma.json.v3.ast.JArray.

    Definition Classes
    ZipperLike
  2. abstract def prev: Option[JsonZipper]

    Move to the previous element in the parent array.

    Move to the previous element in the parent array.

    returns

    A com.rojoma.json.v3.zipper.JsonZipper pointing at the previous element, or None if there is no previous element or if the parent is not a com.rojoma.json.v3.ast.JArray.

    Definition Classes
    ZipperLike
  3. abstract def remove: NothingZipper

    Remove the current value from the tree.

    Remove the current value from the tree.

    returns

    A com.rojoma.json.v3.zipper.NothingZipper pointing at the hole left by removing the current value.

  4. abstract def replace(newValue: JObject): JObjectZipper

    Replace the current value with an object.

    Replace the current value with an object.

    returns

    A com.rojoma.json.v3.zipper.JsonZipper pointing at the same location but with the current value replaced.

    Definition Classes
    ZipperLike
  5. abstract def replace(newValue: JArray): JArrayZipper

    Replace the current value with an array.

    Replace the current value with an array.

    returns

    A com.rojoma.json.v3.zipper.JsonZipper pointing at the same location but with the current value replaced.

    Definition Classes
    ZipperLike
  6. abstract def replace(newValue: JAtom): JAtomZipper

    Replace the current value with an atom.

    Replace the current value with an atom.

    returns

    A com.rojoma.json.v3.zipper.JsonZipper pointing at the same location but with the current value replaced.

    Definition Classes
    ZipperLike
  7. abstract def sibling(field: String): Option[JsonZipper]

    Move to a different field in the parent object.

    Move to a different field in the parent object.

    returns

    A com.rojoma.json.v3.zipper.JsonZipper pointing at the new field, or None if that field does not exist or the parent is not a com.rojoma.json.v3.ast.JObject.

    Definition Classes
    ZipperLike
  8. abstract def top: JsonZipper

    Move up the chain of parents to the top of the object.

    Move up the chain of parents to the top of the object.

    returns

    A com.rojoma.json.v3.zipper.JsonZipper pointing at the top object.

  9. abstract def up: Option[JsonZipper]

    Move to the parent object.

    Move to the parent object.

    returns

    A com.rojoma.json.v3.zipper.JsonZipper pointing at the parent object, or None if this is the top-level object.

    Definition Classes
    ZipperLike
  10. abstract def up_!: JsonZipper

    Move to the parent object.

    Move to the parent object.

    returns

    A com.rojoma.json.v3.zipper.JsonZipper pointing at the parent object.

    Definition Classes
    ZipperLike
    Exceptions thrown
    NoSuchElementException

    if this is the top-level object.

  11. abstract def value: ValueType

    The value stored at this location

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def adjust(f: (ValueType) ⇒ JValue): JsonZipper

  7. def asArray: Option[JArrayZipper]

    Safe downcast to com.rojoma.json.v3.zipper.JArrayZipper

  8. def asAtom: Option[JAtomZipper]

    Safe downcast to com.rojoma.json.v3.zipper.JAtomZipper

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def asObject: Option[JObjectZipper]

    Safe downcast to com.rojoma.json.v3.zipper.JObjectZipper

  11. def clone(): AnyRef

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  19. def next_!: JsonZipper

    Move to the next element in the parent array.

    Move to the next element in the parent array.

    returns

    A com.rojoma.json.v3.zipper.JsonZipper pointing at the next element.

    Definition Classes
    ZipperLike
    Exceptions thrown
    NoSuchElementException

    if there is no next element or if the parent is not a com.rojoma.json.v3.ast.JArray.

  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def path: Path

    Definition Classes
    ZipperLike
  23. def prev_!: JsonZipper

    Move to the previous element in the parent array.

    Move to the previous element in the parent array.

    returns

    A com.rojoma.json.v3.zipper.JsonZipper pointing at the previous element.

    Definition Classes
    ZipperLike
    Exceptions thrown
    NoSuchElementException

    if there is no previous element or if the parent is not a com.rojoma.json.v3.ast.JArray.

  24. def replace(newValue: JValue): JsonZipper

    Replace the current value with a new value.

    Replace the current value with a new value.

    returns

    A com.rojoma.json.v3.zipper.JsonZipper pointing at the same location but with the current value replaced.

    Definition Classes
    ZipperLike
  25. def sibling_!(field: String): JsonZipper

    Move to a different field in the parent object.

    Move to a different field in the parent object.

    returns

    A com.rojoma.json.v3.zipper.JsonZipper pointing at the new field.

    Definition Classes
    ZipperLike
    Exceptions thrown
    NoSuchElementException

    if there is no such field or if the parent is not a com.rojoma.json.v3.ast.JObject.

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ZipperLike

Inherited from AnyRef

Inherited from Any

Ungrouped