Package com.jayway.jsonpath
Interface Predicate.PredicateContext
-
- All Known Implementing Classes:
PredicateContextImpl
- Enclosing interface:
- Predicate
public static interface Predicate.PredicateContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Configuration
configuration()
Configuration to use when evaluatingjava.lang.Object
item()
Returns the current item being evaluated by this predicate<T> T
item(java.lang.Class<T> clazz)
Returns the current item being evaluated by this predicate.java.lang.Object
root()
Returns the root document (the complete JSON)
-
-
-
Method Detail
-
item
java.lang.Object item()
Returns the current item being evaluated by this predicate- Returns:
- current document
-
item
<T> T item(java.lang.Class<T> clazz) throws MappingException
Returns the current item being evaluated by this predicate. It will be mapped to the provided class- Returns:
- current document
- Throws:
MappingException
-
root
java.lang.Object root()
Returns the root document (the complete JSON)- Returns:
- root document
-
configuration
Configuration configuration()
Configuration to use when evaluating- Returns:
- configuration
-
-