类 JsonPath
- java.lang.Object
-
- org.jsfr.json.path.JsonPath
-
- 所有已实现的接口:
Iterable<PathOperator>
public class JsonPath extends Object implements Iterable<PathOperator>
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
JsonPath.Builder
-
字段概要
字段 修饰符和类型 字段 说明 protected PathOperator[]
operators
protected int
size
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
checkDefinite()
void
clear()
JsonPath
derivePath(int depth)
PathOperator
get(int i)
boolean
isDefinite()
Iterator<PathOperator>
iterator()
boolean
match(JsonPath jsonPath)
boolean
matchFilterPath(JsonPath jsonPath, int startDepth)
boolean
matchFilterPathUntilDepth(JsonPath jsonPath, int startDepth)
boolean
matchWithDeepScan(JsonPath jsonPath)
static int
minimumPathDepth(JsonPath path)
int
pathDepth()
PathOperator
peek()
protected void
pop()
protected void
push(PathOperator operator)
Object
resolve(Object document, DocumentResolver resolver)
String
toString()
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
-
-
-
字段详细资料
-
operators
protected PathOperator[] operators
-
size
protected int size
-
-
方法详细资料
-
iterator
public Iterator<PathOperator> iterator()
- 指定者:
iterator
在接口中Iterable<PathOperator>
-
resolve
public Object resolve(Object document, DocumentResolver resolver)
-
match
public boolean match(JsonPath jsonPath)
-
matchWithDeepScan
public boolean matchWithDeepScan(JsonPath jsonPath)
-
matchFilterPath
public boolean matchFilterPath(JsonPath jsonPath, int startDepth)
-
matchFilterPathUntilDepth
public boolean matchFilterPathUntilDepth(JsonPath jsonPath, int startDepth)
-
derivePath
public JsonPath derivePath(int depth)
-
get
public PathOperator get(int i)
-
peek
public PathOperator peek()
-
push
protected void push(PathOperator operator)
-
pop
protected void pop()
-
pathDepth
public int pathDepth()
-
clear
public void clear()
-
minimumPathDepth
public static int minimumPathDepth(JsonPath path)
-
isDefinite
public boolean isDefinite()
-
checkDefinite
public boolean checkDefinite()
-
-