case class ACursor(either: Either[HCursor, HCursor]) extends Product with Serializable
- Source
- ACursor.scala
- Alphabetic
- By Inheritance
- ACursor
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
--(q: Json.JsonField): ACursor
Move the cursor to the given sibling field in a JSON object (alias for
field
). -
def
--\(q: Json.JsonField): ACursor
Move the cursor down to a JSON object at the given field (alias for
downField
). -
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
). -
def
-\(p: (Json) ⇒ Boolean): ACursor
Move the cursor down to a JSON array at the first element satisfying the given predicate (alias for
downAt
). -
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
). -
def
:->?(p: (Json) ⇒ Boolean): ACursor
Move the cursor right in a JSON array until the given predicate matches the focus (alias for
rightAt
). -
def
:=(j: Json): ACursor
Set the focus to the given value (alias for
set
). -
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
=\(n: Int): ACursor
Move the cursor down to a JSON array at the given index (alias for
downN
). -
def
>->(k: (Json) ⇒ Json): ACursor
Update the focus with the given function (alias for
withFocus
). -
def
?<-:(p: (Json) ⇒ Boolean): ACursor
Move the cursor left in a JSON array until the given predicate matches the focus (alias for
leftAt
). -
def
\\: ACursor
Move the cursor down to a JSON array at the first element (alias for
downArray
). - def any: HCursor
-
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
. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def cursor: Option[Cursor]
-
def
delete: ACursor
Deletes the JSON value at focus and moves up to parent (alias for
deleteGoParent
). -
def
deleteGoField(q: Json.JsonField): ACursor
Deletes the JSON value at focus and moves to the given sibling field in a JSON object.
-
def
deleteGoFirst: ACursor
Deletes the JSON value at focus and moves to the first in a JSON array.
-
def
deleteGoLast: ACursor
Deletes the JSON value at focus and moves to the last in a JSON array.
-
def
deleteGoLeft: ACursor
Deletes the JSON value at focus and moves to the left in a JSON array.
-
def
deleteGoParent: ACursor
Deletes the JSON value at focus and moves up to parent (alias for
unary_!
). -
def
deleteGoRight: ACursor
Deletes the JSON value at focus and moves to the right in a JSON array.
-
def
deleteLefts: ACursor
Deletes all JSON values to left of focus in a JSON array.
-
def
deleteRights: ACursor
Deletes all JSON values to right of focus in a JSON array.
-
def
downArray: ACursor
Move the cursor down to a JSON array at the first element (alias for
\\
). -
def
downAt(p: (Json) ⇒ Boolean): ACursor
Move the cursor down to a JSON array at the first element satisfying the given predicate (alias for
-\
). -
def
downField(q: Json.JsonField): ACursor
Move the cursor down to a JSON object at the given field (alias for
--\
). -
def
downN(n: Int): ACursor
Move the cursor down to a JSON array at the given index (alias for
=\
). - val either: Either[HCursor, HCursor]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def failed: Boolean
-
def
failure: Option[HCursor]
Get the failed hcursor if we are in an failed state.
-
def
failureFocus: Option[Json]
Return the previous focus, iff we are !succeeded.
-
def
field(q: Json.JsonField): ACursor
Move the cursor to the given sibling field in a JSON object (alias for
--
). -
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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.
-
def
first: ACursor
Move the cursor to the first in a JSON array.
-
def
focus: Option[Json]
Return the current focus, iff we are succeeded
-
def
get[A](name: String)(implicit e: DecodeJson[A]): DecodeResult[A]
Attempts to move down onto a field
name
and decode the focus. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hcursor: Option[HCursor]
Get the current hcursor if we are in an succeeded state.
Get the current hcursor if we are in an succeeded state. Alias for
success
. - def history: CursorHistory
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
jdecode[A](implicit e: DecodeJson[A]): DecodeResult[A]
Attempts to decode this cursor focus value to another data type.
-
def
last: ACursor
Move the cursor to the last in a JSON array.
-
def
left: ACursor
Move the cursor left in a JSON array.
-
def
leftAt(p: (Json) ⇒ Boolean): ACursor
Move the cursor left in a JSON array until the given predicate matches the focus (alias for
?<-:
). -
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
-<-:
). -
def
lefts: Option[Json.JsonArray]
Return the values left of focus in a JSON array.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def reattempt: ACursor
-
def
right: ACursor
Move the cursor right in a JSON array.
-
def
rightAt(p: (Json) ⇒ Boolean): ACursor
Move the cursor right in a JSON array until the given predicate matches the focus (alias for
:->?
). -
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
:->-
). -
def
rights: Option[Json.JsonArray]
Return the values right of focus in a JSON array.
-
def
set(j: Json): ACursor
Set the focus to the given value (alias for
:=
). -
def
setLefts(x: List[Json]): ACursor
Set the values to the left of focus in a JSON array.
-
def
setRights(x: List[Json]): ACursor
Set the values to the right of focus in a JSON array.
- def succeeded: Boolean
-
def
success: Option[HCursor]
Get the current hcursor if we are in an succeeded state.
Get the current hcursor if we are in an succeeded state. Alias for
hcursor
. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
unary_!: ACursor
Deletes the JSON value at focus and moves up to parent (alias for
deleteGoParent
). -
def
unary_-: Option[Json]
Unapplies the cursor to the top-level parent (alias for
undo
). - def unary_~: ACursor
-
def
undo: Option[Json]
Unapplies the cursor to the top-level parent (alias for
unary_-
). -
def
up: ACursor
Move the cursor up one step to the parent context.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withFocus(k: (Json) ⇒ Json): ACursor
Update the focus with the given function (alias for
>->
). - def withHCursor(f: (HCursor) ⇒ ACursor): ACursor
- def |||(c: ⇒ ACursor): ACursor