case class HCursor(cursor: Cursor, history: CursorHistory) extends Product with Serializable
- Alphabetic
- By Inheritance
- HCursor
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new HCursor(cursor: Cursor, history: CursorHistory)
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): HCursor
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): HCursor
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 acursor: ACursor
-
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val cursor: 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
=\). -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def failedACursor: ACursor
-
def
field(q: Json.JsonField): ACursor
Move the cursor to the given sibling field in a JSON object (alias for
--). -
def
fieldSet: Option[Set[Json.JsonField]]
All field names in a JSON object.
-
def
fields: Option[List[Json.JsonField]]
All field names in a JSON object.
-
def
finalize(): Unit
- Attributes
- protected[java.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: Json
Return the current focus.
-
def
get[A](name: String)(implicit e: DecodeJson[A]): DecodeResult[A]
Attempts to move down onto a field
nameand decode the focus. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- val 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
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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): HCursor
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.
-
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_-: Json
Unapplies the cursor to the top-level parent (alias for
undo). -
def
undo: 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( ... )
-
def
withFocus(k: (Json) ⇒ Json): HCursor
Update the focus with the given function (alias for
>->).