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.PredicateContext
item
in interface Predicate.PredicateContext
public <T> T item(Class<T> clazz) throws MappingException
Predicate.PredicateContext
item
in interface Predicate.PredicateContext
MappingException
public Object root()
Predicate.PredicateContext
root
in interface Predicate.PredicateContext
public Configuration configuration()
Predicate.PredicateContext
configuration
in interface Predicate.PredicateContext
Copyright © 2018. All rights reserved.