public class EvaluationContextImpl extends java.lang.Object implements EvaluationContext
| Modifier and Type | Class and Description |
|---|---|
private class |
EvaluationContextImpl.FoundResultImpl |
| Modifier and Type | Field and Description |
|---|---|
private Configuration |
configuration |
private java.util.HashMap<Path,java.lang.Object> |
documentEvalCache |
private boolean |
forUpdate |
private Path |
path |
private java.lang.Object |
pathResult |
private int |
resultIndex |
private java.lang.Object |
rootDocument |
private java.util.List<PathRef> |
updateOperations |
private java.lang.Object |
valueResult |
| Constructor and Description |
|---|
EvaluationContextImpl(Path path,
java.lang.Object rootDocument,
Configuration configuration,
boolean forUpdate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(java.lang.String path,
PathRef operation,
java.lang.Object model) |
Configuration |
configuration() |
java.util.HashMap<Path,java.lang.Object> |
documentEvalCache() |
boolean |
forUpdate() |
<T> T |
getPath()
Returns the list of formalized paths that represent the result of the evaluation
|
java.util.List<java.lang.String> |
getPathList()
Convenience method to get list of hits as String path representations
|
<T> T |
getValue()
This method does not adhere to configuration settings.
|
<T> T |
getValue(boolean unwrap)
|
JsonProvider |
jsonProvider() |
java.util.Set<Option> |
options() |
java.lang.Object |
rootDocument()
The json document that is evaluated
|
java.util.Collection<PathRef> |
updateOperations() |
private final Configuration configuration
private final java.lang.Object valueResult
private final java.lang.Object pathResult
private final Path path
private final java.lang.Object rootDocument
private final java.util.List<PathRef> updateOperations
private final java.util.HashMap<Path,java.lang.Object> documentEvalCache
private final boolean forUpdate
private int resultIndex
public EvaluationContextImpl(Path path, java.lang.Object rootDocument, Configuration configuration, boolean forUpdate)
public java.util.HashMap<Path,java.lang.Object> documentEvalCache()
public boolean forUpdate()
public void addResult(java.lang.String path,
PathRef operation,
java.lang.Object model)
public JsonProvider jsonProvider()
public java.util.Set<Option> options()
public Configuration configuration()
configuration in interface EvaluationContextpublic java.lang.Object rootDocument()
EvaluationContextrootDocument in interface EvaluationContextpublic java.util.Collection<PathRef> updateOperations()
updateOperations in interface EvaluationContextpublic <T> T getValue()
EvaluationContextOption.ALWAYS_RETURN_LISTgetValue in interface EvaluationContextT - expected return typepublic <T> T getValue(boolean unwrap)
EvaluationContextgetValue in interface EvaluationContextT - expected return typeunwrap - tells th underlying json provider if primitives should be unwrappedpublic <T> T getPath()
EvaluationContextgetPath in interface EvaluationContextpublic java.util.List<java.lang.String> getPathList()
EvaluationContextgetPathList in interface EvaluationContext