public class PredicateContextImpl extends Object implements Predicate.PredicateContext
| Constructor and Description |
|---|
PredicateContextImpl(Object contextDocument,
Object rootDocument,
Configuration configuration,
HashMap<Path,Object> documentPathCache) |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
configuration()
Configuration to use when evaluating
|
HashMap<Path,Object> |
documentPathCache() |
Object |
evaluate(Path path) |
Object |
item()
Returns the current item being evaluated by this predicate
|
<T> T |
item(Class<T> clazz)
Returns the current item being evaluated by this predicate.
|
Object |
root()
Returns the root document (the complete JSON)
|
public Object item()
Predicate.PredicateContextitem in interface Predicate.PredicateContextpublic <T> T item(Class<T> clazz) throws MappingException
Predicate.PredicateContextitem in interface Predicate.PredicateContextMappingExceptionpublic Object root()
Predicate.PredicateContextroot in interface Predicate.PredicateContextpublic Configuration configuration()
Predicate.PredicateContextconfiguration in interface Predicate.PredicateContextCopyright © 2016. All rights reserved.