Package com.jayway.jsonpath
Class Filter
java.lang.Object
com.jayway.jsonpath.Filter
- All Implemented Interfaces:
Predicate
- Direct Known Subclasses:
Filter.AndFilter,Filter.OrFilter,Filter.SingleFilter,FilterCompiler.CompiledFilter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate static final classprivate static final classNested classes/interfaces inherited from interface com.jayway.jsonpath.Predicate
Predicate.PredicateContext -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Filter
public Filter()
-
-
Method Details
-
filter
Creates a new Filter based on given criteria- Parameters:
predicate- criteria- Returns:
- a new Filter
-
filter
Create a new Filter based on given list of criteria.- Parameters:
predicates- list of criteria all needs to evaluate to true- Returns:
-
apply
-
or
-
and
-
parse
Parses a filter. The filter must match[?(, white spaces are ignored.)] - Parameters:
filter- filter string to parse- Returns:
- the filter
-