Class PredicateContextImpl
java.lang.Object
com.jayway.jsonpath.internal.path.PredicateContextImpl
- All Implemented Interfaces:
Predicate.PredicateContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Configurationprivate final Objectprivate static final org.slf4j.Loggerprivate final Object -
Constructor Summary
ConstructorsConstructorDescriptionPredicateContextImpl(Object contextDocument, Object rootDocument, Configuration configuration, HashMap<Path, Object> documentPathCache) -
Method Summary
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
contextDocument
-
rootDocument
-
configuration
-
documentPathCache
-
-
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
-