Class/Object

io.circe

ACursor

Related Docs: object ACursor | package circe

Permalink

sealed abstract class ACursor extends GenericCursor[ACursor]

A cursor that tracks history and represents the possibility of failure.

See also

GenericCursor

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ACursor
  2. GenericCursor
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Focus[x] = Option[x]

    Permalink

    The context that the cursor is available in.

    The context that the cursor is available in.

    Definition Classes
    ACursorGenericCursor
  2. type M[x[_]] = Applicative[x]

    Permalink

    The type class including the operations needed for withFocusM.

    The type class including the operations needed for withFocusM.

    Definition Classes
    ACursorGenericCursor
  3. type Result = ACursor

    Permalink

    The type returned by navigation and modifications operations.

    The type returned by navigation and modifications operations.

    Definition Classes
    ACursorGenericCursor

Abstract Value Members

  1. abstract def succeeded: Boolean

    Permalink

    Indicate whether this cursor represents the result of a successful operation.

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. final val any: HCursor

    Permalink
  5. final def as[A](implicit d: Decoder[A]): Decoder.Result[A]

    Permalink

    Attempt to decode the focus as an A.

    Attempt to decode the focus as an A.

    Definition Classes
    ACursorGenericCursor
  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def cursor: Option[Cursor]

    Permalink

    Return the underlying cursor if successful.

  9. final def delete: ACursor

    Permalink

    Delete the focus and move to its parent.

    Delete the focus and move to its parent.

    Definition Classes
    ACursorGenericCursor
  10. final def deleteGoField(k: String): ACursor

    Permalink

    Delete the focus and move to the sibling with the given key in a JSON object.

    Delete the focus and move to the sibling with the given key in a JSON object.

    Definition Classes
    ACursorGenericCursor
  11. final def deleteGoFirst: ACursor

    Permalink

    Delete the focus and move to the first element in a JSON array.

    Delete the focus and move to the first element in a JSON array.

    Definition Classes
    ACursorGenericCursor
  12. final def deleteGoLast: ACursor

    Permalink

    Delete the focus and move to the last element in a JSON array.

    Delete the focus and move to the last element in a JSON array.

    Definition Classes
    ACursorGenericCursor
  13. final def deleteGoLeft: ACursor

    Permalink

    Delete the focus and move to the left in a JSON array.

    Delete the focus and move to the left in a JSON array.

    Definition Classes
    ACursorGenericCursor
  14. final def deleteGoRight: ACursor

    Permalink

    Delete the focus and move to the right in a JSON array.

    Delete the focus and move to the right in a JSON array.

    Definition Classes
    ACursorGenericCursor
  15. final def deleteLefts: ACursor

    Permalink

    Delete all values to the left of the focus in a JSON array.

    Delete all values to the left of the focus in a JSON array.

    Definition Classes
    ACursorGenericCursor
  16. final def deleteRights: ACursor

    Permalink

    Delete all values to the right of the focus in a JSON array.

    Delete all values to the right of the focus in a JSON array.

    Definition Classes
    ACursorGenericCursor
  17. final def downArray: ACursor

    Permalink

    If the focus is a JSON array, move to its first element.

    If the focus is a JSON array, move to its first element.

    Definition Classes
    ACursorGenericCursor
  18. final def downAt(p: (Json) ⇒ Boolean): ACursor

    Permalink

    If the focus is a JSON array, move to the first element that satisfies the given predicate.

    If the focus is a JSON array, move to the first element that satisfies the given predicate.

    Definition Classes
    ACursorGenericCursor
  19. final def downField(k: String): ACursor

    Permalink

    If the focus is a JSON object, move to the value of the given key.

    If the focus is a JSON object, move to the value of the given key.

    Definition Classes
    ACursorGenericCursor
  20. final def downN(n: Int): ACursor

    Permalink

    If the focus is a JSON array, move to the element at the given index.

    If the focus is a JSON array, move to the element at the given index.

    Definition Classes
    ACursorGenericCursor
  21. final def either: Xor[HCursor, HCursor]

    Permalink
  22. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def failed: Boolean

    Permalink

    Indicate whether this cursor represents the result of an unsuccessful operation.

  25. final def failure: Option[HCursor]

    Permalink

    Return the failed HCursor if we are in a failure state.

  26. final def failureFocus: Option[Json]

    Permalink

    Return the previous focus, if and only if we didn't succeed.

  27. final def field(k: String): ACursor

    Permalink

    If the focus is a value in a JSON object, move to a sibling with the given key.

    If the focus is a value in a JSON object, move to a sibling with the given key.

    Definition Classes
    ACursorGenericCursor
  28. final def fieldSet: Option[Set[String]]

    Permalink

    If the focus is a JSON object, return its field names in a set.

    If the focus is a JSON object, return its field names in a set.

    Definition Classes
    ACursorGenericCursor
  29. final def fields: Option[List[String]]

    Permalink

    If the focus is a JSON object, return its field names in their original order.

    If the focus is a JSON object, return its field names in their original order.

    Definition Classes
    ACursorGenericCursor
  30. def finalize(): Unit

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

    Permalink

    If the focus is an element in a JSON array, find the first element at or to its right that matches the given predicate.

    If the focus is an element in a JSON array, find the first element at or to its right that matches the given predicate.

    Definition Classes
    ACursorGenericCursor
  32. final def first: ACursor

    Permalink

    If the focus is an element in a JSON array, move to the first element.

    If the focus is an element in a JSON array, move to the first element.

    Definition Classes
    ACursorGenericCursor
  33. final def focus: Option[Json]

    Permalink

    The current location in the document.

    The current location in the document.

    Definition Classes
    ACursorGenericCursor
  34. final def get[A](k: String)(implicit d: Decoder[A]): Decoder.Result[A]

    Permalink

    Attempt to decode the value at the given key in a JSON object as an A.

    Attempt to decode the value at the given key in a JSON object as an A.

    Definition Classes
    ACursorGenericCursor
  35. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  36. def getOrElse[A](k: String)(fallback: ⇒ A)(implicit d: Decoder[A]): Decoder.Result[A]

    Permalink

    Attempt to decode the value at the given key in a JSON object as an A.

    Attempt to decode the value at the given key in a JSON object as an A. If the field k is missing, then use the fallback instead.

    Definition Classes
    GenericCursor
  37. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  38. final def history: List[HistoryOp]

    Permalink

    Return the underlying cursor's history.

  39. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  40. final def last: ACursor

    Permalink

    If the focus is an element in a JSON array, move to the last element.

    If the focus is an element in a JSON array, move to the last element.

    Definition Classes
    ACursorGenericCursor
  41. final def left: ACursor

    Permalink

    If the focus is an element in a JSON array, move to the left.

    If the focus is an element in a JSON array, move to the left.

    Definition Classes
    ACursorGenericCursor
  42. final def leftAt(p: (Json) ⇒ Boolean): ACursor

    Permalink

    If the focus is an element in a JSON array, move to the left until the given predicate matches the new focus.

    If the focus is an element in a JSON array, move to the left until the given predicate matches the new focus.

    Definition Classes
    ACursorGenericCursor
  43. final def leftN(n: Int): ACursor

    Permalink

    If the focus is an element in JSON array, move to the left the given number of times.

    If the focus is an element in JSON array, move to the left the given number of times.

    A negative value will move the cursor right.

    Definition Classes
    ACursorGenericCursor
  44. final def lefts: Option[List[Json]]

    Permalink

    If the focus is a JSON array, return the elements to the left.

    If the focus is a JSON array, return the elements to the left.

    Definition Classes
    ACursorGenericCursor
  45. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  48. final def or(c: ⇒ ACursor): ACursor

    Permalink

    Return the current cursor or the given one if this one isn't successful.

  49. final def reattempt: ACursor

    Permalink

    If the last operation was not successful, reattempt it.

  50. final def replay(history: List[HistoryOp]): ACursor

    Permalink

    Replay history (a list of operations in reverse "chronological" order) against this cursor.

    Replay history (a list of operations in reverse "chronological" order) against this cursor.

    Definition Classes
    ACursorGenericCursor
  51. final def right: ACursor

    Permalink

    If the focus is an element in a JSON array, move to the right.

    If the focus is an element in a JSON array, move to the right.

    Definition Classes
    ACursorGenericCursor
  52. final def rightAt(p: (Json) ⇒ Boolean): ACursor

    Permalink

    If the focus is an element in a JSON array, move to the right until the given predicate matches the new focus.

    If the focus is an element in a JSON array, move to the right until the given predicate matches the new focus.

    Definition Classes
    ACursorGenericCursor
  53. final def rightN(n: Int): ACursor

    Permalink

    If the focus is an element in JSON array, move to the right the given number of times.

    If the focus is an element in JSON array, move to the right the given number of times.

    A negative value will move the cursor left.

    Definition Classes
    ACursorGenericCursor
  54. final def rights: Option[List[Json]]

    Permalink

    If the focus is a JSON array, return the elements to the right.

    If the focus is a JSON array, return the elements to the right.

    Definition Classes
    ACursorGenericCursor
  55. final def set(j: Json): ACursor

    Permalink

    Replace the focus.

    Replace the focus.

    Definition Classes
    GenericCursor
  56. final def setLefts(x: List[Json]): ACursor

    Permalink

    Replace all values to the left of the focus in a JSON array.

    Replace all values to the left of the focus in a JSON array.

    Definition Classes
    ACursorGenericCursor
  57. final def setRights(x: List[Json]): ACursor

    Permalink

    Replace all values to the right of the focus in a JSON array.

    Replace all values to the right of the focus in a JSON array.

    Definition Classes
    ACursorGenericCursor
  58. final def success: Option[HCursor]

    Permalink

    Return the current HCursor if we are in a success state.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  61. final def top: Option[Json]

    Permalink

    Return to the root of the document.

    Return to the root of the document.

    Definition Classes
    ACursorGenericCursor
  62. final def up: ACursor

    Permalink

    Move the focus to the parent.

    Move the focus to the parent.

    Definition Classes
    ACursorGenericCursor
  63. final def validation: Validated[HCursor, HCursor]

    Permalink

    Return a cats.data.Validated of the underlying cursor.

  64. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  67. final def withFocus(f: (Json) ⇒ Json): ACursor

    Permalink

    Modify the focus using the given function.

    Modify the focus using the given function.

    Definition Classes
    ACursorGenericCursor
  68. final def withFocusM[F[_]](f: (Json) ⇒ F[Json])(implicit F: Applicative[F]): F[ACursor]

    Permalink

    Modify the focus in a context using the given function.

    Modify the focus in a context using the given function.

    Definition Classes
    ACursorGenericCursor

Inherited from GenericCursor[ACursor]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Miscellaneous utilities

Type members

ACursor fields and operations

Access and navigation

Modification

Array access

Object access

Array navigation

Object navigation

Array modification

Object modification

Decoding