Class Path
java.lang.Object
jodd.json.Path
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionPath()Path(CharSequence... fields) Creates path from given path elements.privatePath(CharSequence[] paths, int index, Path altPath) -
Method Summary
Modifier and TypeMethodDescriptionprivate void_push(CharSequence field) clone()booleanget(int i) Returns path chunk at given index.Returns alternative path.inthashCode()intlength()Returns path length.static PathParses input dot-separated string that represents a path.pop()Pop last element from the path.push(CharSequence field) Push element to the path.push(CharSequence field, CharSequence altField) toString()
-
Field Details
-
paths
-
index
private int index -
altPath
Path altPath
-
-
Constructor Details
-
Path
public Path() -
Path
Creates path from given path elements. -
Path
-
-
Method Details
-
parse
-
getAltPath
Returns alternative path. -
push
Push element to the path. -
push
-
_push
-
pop
Pop last element from the path. -
length
public int length()Returns path length. -
get
Returns path chunk at given index. -
toString
-
equals
-
hashCode
-
clone
-