类的使用
org.jsfr.json.path.JsonPath
-
使用JsonPath的程序包 程序包 说明 org.jsfr.json org.jsfr.json.compiler org.jsfr.json.filter org.jsfr.json.path -
-
org.jsfr.json中JsonPath的使用
参数类型为JsonPath的org.jsfr.json中的方法 修饰符和类型 方法 说明 <T> SurfingConfiguration.Builder
SurfingConfiguration.Builder. bind(JsonPath jsonPath, Class<T> tClass, TypedJsonPathListener<T>... typedListeners)
SurfingConfiguration.Builder
SurfingConfiguration.Builder. bind(JsonPath jsonPath, JsonPathListener... jsonPathListeners)
<T> ValueBox<Collection<T>>
Collector. collectAll(JsonPath jsonPath, Class<T> tClass)
Collect multiple value into box<T> Collection<T>
JsonSurfer. collectAll(InputStream inputStream, Class<T> tClass, JsonPath... paths)
已过时。useJsonSurfer.collector(InputStream)
insteadCollection<Object>
JsonSurfer. collectAll(InputStream inputStream, JsonPath... paths)
已过时。useJsonSurfer.collector(InputStream)
instead<T> Collection<T>
JsonSurfer. collectAll(Reader reader, Class<T> tClass, JsonPath... paths)
已过时。useJsonSurfer.collector(String)
insteadCollection<Object>
JsonSurfer. collectAll(Reader reader, JsonPath... paths)
已过时。useJsonSurfer.collector(String)
instead<T> Collection<T>
JsonSurfer. collectAll(String json, Class<T> tClass, JsonPath... paths)
已过时。useJsonSurfer.collector(String)
insteadCollection<Object>
JsonSurfer. collectAll(String json, JsonPath... paths)
已过时。useJsonSurfer.collector(String)
instead<T> ValueBox<T>
Collector. collectOne(JsonPath jsonPath, Class<T> tClass)
Collect single value into box<T> T
JsonSurfer. collectOne(InputStream inputStream, Class<T> tClass, JsonPath... paths)
已过时。useJsonSurfer.collector(InputStream)
insteadObject
JsonSurfer. collectOne(InputStream inputStream, JsonPath... paths)
已过时。useJsonSurfer.collector(InputStream)
instead<T> T
JsonSurfer. collectOne(Reader reader, Class<T> tClass, JsonPath... paths)
已过时。useJsonSurfer.collector(InputStream)
insteadObject
JsonSurfer. collectOne(Reader reader, JsonPath... paths)
已过时。useJsonSurfer.collector(InputStream)
instead<T> T
JsonSurfer. collectOne(String json, Class<T> tClass, JsonPath... paths)
已过时。useJsonSurfer.collector(String)
insteadObject
JsonSurfer. collectOne(String json, JsonPath... paths)
已过时。useJsonSurfer.collector(String)
insteadstatic Collection<SurfingConfiguration.FilterConfig>
SurfingConfiguration. getFilterConfigs(JsonPath path)
Iterator<Object>
JsonSurfer. iterator(InputStream inputStream, JsonPath jsonPath)
Create a streaming iterator which can pull matched value one by one according to provided JsonPath.Iterator<Object>
JsonSurfer. iterator(Reader reader, JsonPath jsonPath)
已过时。UseJsonSurfer.iterator(InputStream, JsonPath)
instead.Iterator<Object>
JsonSurfer. iterator(String json, JsonPath jsonPath)
Create a streaming iterator which can pull matched value one by one according to provided JsonPath. -
org.jsfr.json.compiler中JsonPath的使用
返回JsonPath的org.jsfr.json.compiler中的方法 修饰符和类型 方法 说明 static JsonPath
JsonPathCompiler. compile(String path)
static JsonPath[]
JsonPathCompiler. compile(String... paths)
-
org.jsfr.json.filter中JsonPath的使用
返回JsonPath的org.jsfr.json.filter中的方法 修饰符和类型 方法 说明 JsonPath
BasicJsonPathFilter. getRelativePath()
参数类型为JsonPath的org.jsfr.json.filter中的方法 修饰符和类型 方法 说明 boolean
AndPredicate. apply(JsonPath jsonPosition, int startDepth, PrimitiveHolder primitiveHolder, JsonProvider jsonProvider)
boolean
CloneableJsonPathFilter. apply(JsonPath jsonPosition, int startDepth, PrimitiveHolder primitiveHolder, JsonProvider jsonProvider)
boolean
EqualityBoolPredicate. apply(JsonPath jsonPosition, int startDepth, PrimitiveHolder primitiveHolder, JsonProvider jsonProvider)
boolean
EqualityNumPredicate. apply(JsonPath jsonPosition, int startDepth, PrimitiveHolder primitiveHolder, JsonProvider jsonProvider)
boolean
EqualityStrPredicate. apply(JsonPath jsonPosition, int startDepth, PrimitiveHolder primitiveHolder, JsonProvider jsonProvider)
boolean
ExistencePredicate. apply(JsonPath jsonPosition, int startDepth, PrimitiveHolder primitiveHolder, JsonProvider jsonProvider)
boolean
GreaterThanNumPredicate. apply(JsonPath jsonPosition, int startDepth, PrimitiveHolder primitiveHolder, JsonProvider jsonProvider)
boolean
JsonPathFilter. apply(JsonPath jsonPosition, int startDepth, PrimitiveHolder primitiveHolder, JsonProvider jsonProvider)
Returns whether json position satisfies the filter.boolean
LessThanNumPredicate. apply(JsonPath jsonPosition, int startDepth, PrimitiveHolder primitiveHolder, JsonProvider jsonProvider)
boolean
MatchRegexPredicate. apply(JsonPath jsonPosition, int startDepth, PrimitiveHolder primitiveHolder, JsonProvider jsonProvider)
boolean
NegationPredicate. apply(JsonPath jsonPosition, int startDepth, PrimitiveHolder primitiveHolder, JsonProvider jsonProvider)
boolean
OrPredicate. apply(JsonPath jsonPosition, int startDepth, PrimitiveHolder primitiveHolder, JsonProvider jsonProvider)
参数类型为JsonPath的org.jsfr.json.filter中的构造器 构造器 说明 BasicJsonPathFilter(JsonPath relativePath)
EqualityBoolPredicate(JsonPath relativePath, boolean value)
EqualityNumPredicate(JsonPath relativePath, BigDecimal value)
EqualityStrPredicate(JsonPath relativePath, String value)
ExistencePredicate(JsonPath relativePath)
GreaterThanNumPredicate(JsonPath relativePath, BigDecimal value)
LessThanNumPredicate(JsonPath relativePath, BigDecimal value)
MatchRegexPredicate(JsonPath relativePath, Pattern regex)
-
org.jsfr.json.path中JsonPath的使用
返回JsonPath的org.jsfr.json.path中的方法 修饰符和类型 方法 说明 JsonPath
JsonPath.Builder. build()
JsonPath
JsonPath. derivePath(int depth)
参数类型为JsonPath的org.jsfr.json.path中的方法 修饰符和类型 方法 说明 boolean
JsonPath. match(JsonPath jsonPath)
boolean
JsonPath. matchFilterPath(JsonPath jsonPath, int startDepth)
boolean
JsonPath. matchFilterPathUntilDepth(JsonPath jsonPath, int startDepth)
boolean
JsonPath. matchWithDeepScan(JsonPath jsonPath)
static int
JsonPath. minimumPathDepth(JsonPath path)
-