public class JsonPath
extends java.lang.Object
Implemented as a singly-linked list where each PropertyPath represents one part of the path, linked to its parent.
Modifier and Type | Field and Description |
---|---|
static JsonPath |
ROOT
Special path which represents the root of all paths.
|
Modifier and Type | Method and Description |
---|---|
JsonPath |
createChildPath(int index) |
JsonPath |
createChildPath(java.lang.String childKey) |
boolean |
equals(java.lang.Object obj) |
java.util.LinkedList<JsonPath> |
getAsLinkedList() |
int |
getDepth() |
java.lang.Object |
getKey() |
JsonPath |
getParent() |
JsonPath[] |
getPathElements()
Returns the elements in this path's parent chain in order from ROOT downwards
|
int |
hashCode() |
boolean |
isAncestorOf(JsonPath element) |
boolean |
isRoot() |
static boolean |
isValidIdentifier(java.lang.String test) |
static JsonPath |
parse(java.lang.String path) |
java.lang.String |
toString() |
public static final JsonPath ROOT
public boolean isRoot()
public int getDepth()
public java.lang.Object getKey()
public JsonPath getParent()
public JsonPath[] getPathElements()
public java.util.LinkedList<JsonPath> getAsLinkedList()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isAncestorOf(JsonPath element)
public static boolean isValidIdentifier(java.lang.String test)
public JsonPath createChildPath(java.lang.String childKey)
public JsonPath createChildPath(int index)
public java.lang.String toString()
toString
in class java.lang.Object
public static JsonPath parse(java.lang.String path)