public class PredicateContextImpl extends java.lang.Object implements Predicate.PredicateContext
| Constructor and Description |
|---|
PredicateContextImpl(java.lang.Object contextDocument,
java.lang.Object rootDocument,
Configuration configuration,
java.util.HashMap<Path,java.lang.Object> documentPathCache) |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
configuration()
Configuration to use when evaluating
|
java.util.HashMap<Path,java.lang.Object> |
documentPathCache() |
java.lang.Object |
evaluate(Path path) |
java.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)
|
public PredicateContextImpl(java.lang.Object contextDocument,
java.lang.Object rootDocument,
Configuration configuration,
java.util.HashMap<Path,java.lang.Object> documentPathCache)
public java.lang.Object evaluate(Path path)
public java.util.HashMap<Path,java.lang.Object> documentPathCache()
public java.lang.Object item()
Predicate.PredicateContextitem in interface Predicate.PredicateContextpublic <T> T item(java.lang.Class<T> clazz)
throws MappingException
Predicate.PredicateContextitem in interface Predicate.PredicateContextMappingExceptionpublic java.lang.Object root()
Predicate.PredicateContextroot in interface Predicate.PredicateContextpublic Configuration configuration()
Predicate.PredicateContextconfiguration in interface Predicate.PredicateContext