Package com.jayway.jsonpath.internal
Interface EvaluationContext
- All Known Implementing Classes:
EvaluationContextImpl
public interface EvaluationContext
-
Method Summary
Modifier and TypeMethodDescription<T> T
getPath()
Returns the list of formalized paths that represent the result of the evaluationConvenience 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()
The json document that is evaluated
-
Method Details
-
configuration
Configuration configuration()- Returns:
- the configuration used for this evaluation
-
rootDocument
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
Convenience method to get list of hits as String path representations- Returns:
- list of path representations
-
updateOperations
Collection<PathRef> updateOperations()
-