Uses of Interface
com.jayway.jsonpath.Predicate
-
Packages that use Predicate Package Description com.jayway.jsonpath com.jayway.jsonpath.internal com.jayway.jsonpath.internal.filter com.jayway.jsonpath.internal.path -
-
Uses of Predicate in com.jayway.jsonpath
Classes in com.jayway.jsonpath that implement Predicate Modifier and Type Class Description class
Criteria
class
Filter
private static class
Filter.AndFilter
private static class
Filter.OrFilter
private static class
Filter.SingleFilter
Fields in com.jayway.jsonpath declared as Predicate Modifier and Type Field Description private Predicate
Filter.OrFilter. left
private Predicate
Filter.SingleFilter. predicate
private Predicate
Filter.OrFilter. right
Fields in com.jayway.jsonpath with type parameters of type Predicate Modifier and Type Field Description private java.util.Collection<Predicate>
Filter.AndFilter. predicates
Methods in com.jayway.jsonpath with parameters of type Predicate Modifier and Type Method Description DocumentContext
WriteContext. add(java.lang.String path, java.lang.Object value, Predicate... filters)
Add value to arrayFilter
Filter. and(Predicate other)
Filter
Filter.AndFilter. and(Predicate other)
Filter
Filter.OrFilter. and(Predicate other)
static JsonPath
JsonPath. compile(java.lang.String jsonPath, Predicate... filters)
Compiles a JsonPathDocumentContext
WriteContext. delete(java.lang.String path, Predicate... filters)
Deletes the given pathstatic Filter
Filter. filter(Predicate predicate)
Creates a new Filter based on given criteriaDocumentContext
WriteContext. map(java.lang.String path, MapFunction mapFunction, Predicate... filters)
Replaces the value on the given path with the result of theMapFunction
.Criteria
Criteria. matches(Predicate p)
Thematches
operator checks that an object matches the given predicate.Filter
Filter. or(Predicate other)
DocumentContext
WriteContext. put(java.lang.String path, java.lang.String key, java.lang.Object value, Predicate... filters)
Add or update the key with a the given value at the given pathstatic <T> T
JsonPath. read(java.io.File jsonFile, java.lang.String jsonPath, Predicate... filters)
Creates a new JsonPath and applies it to the provided Json objectstatic <T> T
JsonPath. read(java.io.InputStream jsonInputStream, java.lang.String jsonPath, Predicate... filters)
Creates a new JsonPath and applies it to the provided Json objectstatic <T> T
JsonPath. read(java.lang.Object json, java.lang.String jsonPath, Predicate... filters)
Creates a new JsonPath and applies it to the provided Json objectstatic <T> T
JsonPath. read(java.lang.String json, java.lang.String jsonPath, Predicate... filters)
Creates a new JsonPath and applies it to the provided Json stringstatic <T> T
JsonPath. read(java.net.URL jsonURL, java.lang.String jsonPath, Predicate... filters)
Creates a new JsonPath and applies it to the provided Json object<T> T
ReadContext. read(java.lang.String path, Predicate... filters)
Reads the given path from this context<T> T
ReadContext. read(java.lang.String path, java.lang.Class<T> type, Predicate... filters)
Reads the given path from this contextDocumentContext
WriteContext. renameKey(java.lang.String path, java.lang.String oldKeyName, java.lang.String newKeyName, Predicate... filters)
Renames the last key element of a given path.DocumentContext
WriteContext. set(java.lang.String path, java.lang.Object newValue, Predicate... filters)
Set the value a the given pathMethod parameters in com.jayway.jsonpath with type arguments of type Predicate Modifier and Type Method Description static Filter
Filter. filter(java.util.Collection<Predicate> predicates)
Create a new Filter based on given list of criteria.Constructors in com.jayway.jsonpath with parameters of type Predicate Constructor Description AndFilter(Predicate left, Predicate right)
JsonPath(java.lang.String jsonPath, Predicate[] filters)
OrFilter(Predicate left, Predicate right)
SingleFilter(Predicate predicate)
Constructor parameters in com.jayway.jsonpath with type arguments of type Predicate Constructor Description AndFilter(java.util.Collection<Predicate> predicates)
-
Uses of Predicate in com.jayway.jsonpath.internal
Methods in com.jayway.jsonpath.internal with parameters of type Predicate Modifier and Type Method Description DocumentContext
JsonContext. add(java.lang.String path, java.lang.Object value, Predicate... filters)
DocumentContext
JsonContext. delete(java.lang.String path, Predicate... filters)
DocumentContext
JsonContext. map(java.lang.String path, MapFunction mapFunction, Predicate... filters)
DocumentContext
JsonContext. put(java.lang.String path, java.lang.String key, java.lang.Object value, Predicate... filters)
<T> T
JsonContext. read(java.lang.String path, Predicate... filters)
<T> T
JsonContext. read(java.lang.String path, java.lang.Class<T> type, Predicate... filters)
DocumentContext
JsonContext. renameKey(java.lang.String path, java.lang.String oldKeyName, java.lang.String newKeyName, Predicate... filters)
DocumentContext
JsonContext. set(java.lang.String path, java.lang.Object newValue, Predicate... filters)
-
Uses of Predicate in com.jayway.jsonpath.internal.filter
Classes in com.jayway.jsonpath.internal.filter that implement Predicate Modifier and Type Class Description class
ExpressionNode
private static class
FilterCompiler.CompiledFilter
class
LogicalExpressionNode
class
RelationalExpressionNode
Fields in com.jayway.jsonpath.internal.filter declared as Predicate Modifier and Type Field Description private Predicate
FilterCompiler.CompiledFilter. predicate
private Predicate
ValueNode.PredicateNode. predicate
Methods in com.jayway.jsonpath.internal.filter that return Predicate Modifier and Type Method Description Predicate
FilterCompiler. compile()
Predicate
ValueNode.PredicateNode. getPredicate()
Constructors in com.jayway.jsonpath.internal.filter with parameters of type Predicate Constructor Description CompiledFilter(Predicate predicate)
PredicateNode(Predicate predicate)
-
Uses of Predicate in com.jayway.jsonpath.internal.path
Fields in com.jayway.jsonpath.internal.path with type parameters of type Predicate Modifier and Type Field Description private java.util.LinkedList<Predicate>
PathCompiler. filterStack
private java.util.Collection<Predicate>
PredicatePathToken. predicates
Methods in com.jayway.jsonpath.internal.path with parameters of type Predicate Modifier and Type Method Description static Path
PathCompiler. compile(java.lang.String path, Predicate... filters)
static PathToken
PathTokenFactory. createPredicatePathToken(Predicate predicate)
Method parameters in com.jayway.jsonpath.internal.path with type arguments of type Predicate Modifier and Type Method Description static PathToken
PathTokenFactory. createPredicatePathToken(java.util.Collection<Predicate> predicates)
Constructors in com.jayway.jsonpath.internal.path with parameters of type Predicate Constructor Description PredicatePathToken(Predicate filter)
Constructor parameters in com.jayway.jsonpath.internal.path with type arguments of type Predicate Constructor Description PathCompiler(java.lang.String path, java.util.LinkedList<Predicate> filterStack)
PredicatePathToken(java.util.Collection<Predicate> predicates)
-