Package com.jayway.jsonpath.internal
Interface EvaluationContext
-
- All Known Implementing Classes:
EvaluationContextImpl
public interface EvaluationContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Configuration
configuration()
<T> T
getPath()
Returns the list of formalized paths that represent the result of the evaluationjava.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)
SeegetValue()
java.lang.Object
rootDocument()
The json document that is evaluatedjava.util.Collection<PathRef>
updateOperations()
-
-
-
Method Detail
-
configuration
Configuration configuration()
- Returns:
- the configuration used for this evaluation
-
rootDocument
java.lang.Object rootDocument()
The json document that is evaluated- Returns:
- the document
-
getValue
<T> T getValue()
This method does not adhere to configuration settings. It will return a single object (not wrapped in a List) even if the configuration contains theOption.ALWAYS_RETURN_LIST
- Type Parameters:
T
- expected return type- Returns:
- evaluation result
-
getValue
<T> T getValue(boolean unwrap)
SeegetValue()
- Type Parameters:
T
- expected return type- Parameters:
unwrap
- tells th underlying json provider if primitives should be unwrapped- Returns:
- evaluation result
-
getPath
<T> T getPath()
Returns the list of formalized paths that represent the result of the evaluation- Type Parameters:
T
-- Returns:
- list of paths
-
getPathList
java.util.List<java.lang.String> getPathList()
Convenience method to get list of hits as String path representations- Returns:
- list of path representations
-
updateOperations
java.util.Collection<PathRef> updateOperations()
-
-