Modifier and Type | Class | Description |
---|---|---|
class |
Index |
Represents the index of a JsElem in a JsArray.
|
class |
Key |
Represents the Key of a JsElem in a JsObj.
|
Modifier and Type | Method | Description |
---|---|---|
Position |
JsPath.head() |
Returns the head of this path if it's not empty, throwing an exception otherwise.
|
Position |
JsPath.last() |
returns the last parse
this JsPath if it's not empty or a exception otherwise. |
Modifier and Type | Method | Description |
---|---|---|
Stream<Position> |
JsPath.stream() |
Returns a sequential
Stream of Positions with this path as its source. |
Modifier and Type | Method | Description |
---|---|---|
int |
Index.compareTo(Position o) |
Compares this index with another given position.
|
int |
Key.compareTo(Position o) |
compares this key with another given position.
|
int |
Position.compareTo(Position o) |
|
JsElem |
Json.get(Position position) |
Returns the element located at the key or index specified by the given position or
JsNothing if it
doesn't exist. |
Copyright © 2019. All rights reserved.