Class PredicateContextImpl
java.lang.Object
com.jayway.jsonpath.internal.path.PredicateContextImpl
- All Implemented Interfaces:
Predicate.PredicateContext
-
Constructor Summary
ConstructorsConstructorDescriptionPredicateContextImpl(Object contextDocument, Object rootDocument, Configuration configuration, HashMap<Path, Object> documentPathCache) -
Method Summary
-
Constructor Details
-
PredicateContextImpl
-
-
Method Details
-
evaluate
-
documentPathCache
-
item
Description copied from interface:Predicate.PredicateContextReturns the current item being evaluated by this predicate- Specified by:
itemin interfacePredicate.PredicateContext- Returns:
- current document
-
item
Description copied from interface:Predicate.PredicateContextReturns the current item being evaluated by this predicate. It will be mapped to the provided class- Specified by:
itemin interfacePredicate.PredicateContext- Returns:
- current document
- Throws:
MappingException
-
root
Description copied from interface:Predicate.PredicateContextReturns the root document (the complete JSON)- Specified by:
rootin interfacePredicate.PredicateContext- Returns:
- root document
-
configuration
Description copied from interface:Predicate.PredicateContextConfiguration to use when evaluating- Specified by:
configurationin interfacePredicate.PredicateContext- Returns:
- configuration
-