Class PredicateContextImpl
java.lang.Object
com.jayway.jsonpath.internal.path.PredicateContextImpl
- All Implemented Interfaces:
Predicate.PredicateContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Configuration
private final Object
private static final org.slf4j.Logger
private 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.PredicateContext
Returns the current item being evaluated by this predicate- Specified by:
item
in interfacePredicate.PredicateContext
- Returns:
- current document
-
item
Description copied from interface:Predicate.PredicateContext
Returns the current item being evaluated by this predicate. It will be mapped to the provided class- Specified by:
item
in interfacePredicate.PredicateContext
- Returns:
- current document
- Throws:
MappingException
-
root
Description copied from interface:Predicate.PredicateContext
Returns the root document (the complete JSON)- Specified by:
root
in interfacePredicate.PredicateContext
- Returns:
- root document
-
configuration
Description copied from interface:Predicate.PredicateContext
Configuration to use when evaluating- Specified by:
configuration
in interfacePredicate.PredicateContext
- Returns:
- configuration
-