argonaut

HCursor

case class HCursor(cursor: Cursor, history: CursorHistory) extends Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HCursor
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HCursor(cursor: Cursor, history: CursorHistory)

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. def --(q: Json.JsonField): ACursor

    Move the cursor to the given sibling field in a JSON object (alias for field).

  5. def --\(q: Json.JsonField): ACursor

    Move the cursor down to a JSON object at the given field (alias for downField).

  6. def -<-:(n: Int): ACursor

    Move the cursor left in a JSON array the given number of times.

    Move the cursor left in a JSON array the given number of times. A negative value will move the cursor right (alias for leftN).

  7. def -\(p: (Json) ⇒ Boolean): ACursor

    Move the cursor down to a JSON array at the first element satisfying the given predicate (alias for downAt).

  8. def :->-(n: Int): ACursor

    Move the cursor right in a JSON array the given number of times.

    Move the cursor right in a JSON array the given number of times. A negative value will move the cursor left (alias for rightN).

  9. def :->?(p: (Json) ⇒ Boolean): ACursor

    Move the cursor right in a JSON array until the given predicate matches the focus (alias for rightAt).

  10. def :=(j: Json): HCursor

    Set the focus to the given value (alias for set).

  11. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  13. def =\(n: Int): ACursor

    Move the cursor down to a JSON array at the given index (alias for downN).

  14. def >-->[F[+_]](k: (Json) ⇒ F[Json])(implicit arg0: Functor[F]): F[HCursor]

    Update the focus with the given function in a functor (alias for withFocusM).

  15. def >->(k: (Json) ⇒ Json): HCursor

    Update the focus with the given function (alias for withFocus).

  16. def ?<-:(p: (Json) ⇒ Boolean): ACursor

    Move the cursor left in a JSON array until the given predicate matches the focus (alias for leftAt).

  17. def \\: ACursor

    Move the cursor down to a JSON array at the first element (alias for downArray).

  18. def acursor: ACursor

  19. def as[A](implicit e: DecodeJson[A]): DecodeResult[A]

    Attempts to decode this cursor focus value to another data type.

    Attempts to decode this cursor focus value to another data type. Alias for jdecode.

  20. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  21. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. val cursor: Cursor

  23. def delete: ACursor

    Deletes the JSON value at focus and moves up to parent (alias for deleteGoParent).

  24. def deleteGoField(q: Json.JsonField): ACursor

    Deletes the JSON value at focus and moves to the given sibling field in a JSON object.

  25. def deleteGoFirst: ACursor

    Deletes the JSON value at focus and moves to the first in a JSON array.

  26. def deleteGoLast: ACursor

    Deletes the JSON value at focus and moves to the last in a JSON array.

  27. def deleteGoLeft: ACursor

    Deletes the JSON value at focus and moves to the left in a JSON array.

  28. def deleteGoParent: ACursor

    Deletes the JSON value at focus and moves up to parent (alias for unary_!).

  29. def deleteGoRight: ACursor

    Deletes the JSON value at focus and moves to the right in a JSON array.

  30. def deleteLefts: ACursor

    Deletes all JSON values to left of focus in a JSON array.

  31. def deleteRights: ACursor

    Deletes all JSON values to right of focus in a JSON array.

  32. def downArray: ACursor

    Move the cursor down to a JSON array at the first element (alias for \\).

  33. def downAt(p: (Json) ⇒ Boolean): ACursor

    Move the cursor down to a JSON array at the first element satisfying the given predicate (alias for -\).

  34. def downField(q: Json.JsonField): ACursor

    Move the cursor down to a JSON object at the given field (alias for --\).

  35. def downN(n: Int): ACursor

    Move the cursor down to a JSON array at the given index (alias for =\).

  36. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. def failedACursor: ACursor

  38. def field(q: Json.JsonField): ACursor

    Move the cursor to the given sibling field in a JSON object (alias for --).

  39. def fieldSet: Option[Set[Json.JsonField]]

    All field names in a JSON object.

  40. def fields: Option[List[Json.JsonField]]

    All field names in a JSON object.

  41. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  42. def find(p: (Json) ⇒ Boolean): ACursor

    Find the first element at or to the right of focus in a JSON array where the given predicate matches the focus.

  43. def first: ACursor

    Move the cursor to the first in a JSON array.

  44. def focus: Json

    Return the current focus.

  45. def get[A](name: String)(implicit e: DecodeJson[A]): DecodeResult[A]

    Attempts to move down onto a field name and decode the focus.

  46. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  47. val history: CursorHistory

  48. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  49. def jdecode[A](implicit e: DecodeJson[A]): DecodeResult[A]

    Attempts to decode this cursor focus value to another data type.

  50. def last: ACursor

    Move the cursor to the last in a JSON array.

  51. def left: ACursor

    Move the cursor left in a JSON array.

  52. def leftAt(p: (Json) ⇒ Boolean): ACursor

    Move the cursor left in a JSON array until the given predicate matches the focus (alias for ?<-:).

  53. def leftN(n: Int): ACursor

    Move the cursor left in a JSON array the given number of times.

    Move the cursor left in a JSON array the given number of times. A negative value will move the cursor right (alias for -<-:).

  54. def lefts: Option[Json.JsonArray]

    Return the values left of focus in a JSON array.

  55. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  56. final def notify(): Unit

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

    Definition Classes
    AnyRef
  58. def right: ACursor

    Move the cursor right in a JSON array.

  59. def rightAt(p: (Json) ⇒ Boolean): ACursor

    Move the cursor right in a JSON array until the given predicate matches the focus (alias for :->?).

  60. def rightN(n: Int): ACursor

    Move the cursor right in a JSON array the given number of times.

    Move the cursor right in a JSON array the given number of times. A negative value will move the cursor left (alias for :->-).

  61. def rights: Option[Json.JsonArray]

    Return the values right of focus in a JSON array.

  62. def set(j: Json): HCursor

    Set the focus to the given value (alias for :=).

  63. def setLefts(x: List[Json]): ACursor

    Set the values to the left of focus in a JSON array.

  64. def setRights(x: List[Json]): ACursor

    Set the values to the right of focus in a JSON array.

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

    Definition Classes
    AnyRef
  66. def traverse[X](r: Kleisli[[α]IndexedStateT[[+X]X, X, X, α], HCursor, HCursor]): Endo[X]

  67. def traverseA[X](r: Kleisli[[α]IndexedStateT[[+X]X, X, X, α], HCursor, ACursor]): State[X, Boolean]

  68. def traverseABreak[X](r: Kleisli[[α]IndexedStateT[[+X]X, X, X, α], HCursor, Option[ACursor]]): State[X, Boolean]

  69. def traverseBreak[X](r: Kleisli[[α]IndexedStateT[[+X]X, X, X, α], HCursor, Option[HCursor]]): Endo[X]

  70. def traverseDecode[X](init: X)(op: (HCursor) ⇒ ACursor, f: (X, HCursor) ⇒ DecodeResult[X]): DecodeResult[X]

    Traverse taking op at each step, performing f on the current cursor and accumulate X through DecodeResult.

    Traverse taking op at each step, performing f on the current cursor and accumulate X through DecodeResult.

    This operation does not consume stack at each step, so is safe to work with large structures (that is compared with recursive flatMap).

  71. def traverseUntil[X](init: X)(f: (X, HCursor) ⇒ (X, Option[ACursor])): X

    Traverse until either f does not return a cursor or the cursor did not succeed, accumulating X at each sterp

  72. def traverseUntilDone[X](init: X)(f: (X, HCursor) ⇒ (X, ACursor)): X

    Traverse until f returns a cursor that did not succeed, accumulating X at each step

  73. def unary_!: ACursor

    Deletes the JSON value at focus and moves up to parent (alias for deleteGoParent).

  74. def unary_-: Json

    Unapplies the cursor to the top-level parent (alias for undo).

  75. def undo: Json

    Unapplies the cursor to the top-level parent (alias for unary_-).

  76. def up: ACursor

    Move the cursor up one step to the parent context.

  77. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. def withFocus(k: (Json) ⇒ Json): HCursor

    Update the focus with the given function (alias for >->).

  81. def withFocusM[F[+_]](k: (Json) ⇒ F[Json])(implicit arg0: Functor[F]): F[HCursor]

    Update the focus with the given function in a functor (alias for >-->).

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped