Package com.jayway.jsonpath.internal
Interface Path
- All Known Implementing Classes:
CompiledPath
public interface Path
-
Method Summary
Modifier and TypeMethodDescriptionevaluate
(Object document, Object rootDocument, Configuration configuration) Evaluates this pathevaluate
(Object document, Object rootDocument, Configuration configuration, boolean forUpdate) Evaluates this pathboolean
boolean
boolean
-
Method Details
-
evaluate
Evaluates this path- Parameters:
document
- the json document to apply the path onrootDocument
- the root json document that started this evaluationconfiguration
- configuration to use- Returns:
- EvaluationContext containing results of evaluation
-
evaluate
EvaluationContext evaluate(Object document, Object rootDocument, Configuration configuration, boolean forUpdate) Evaluates this path- Parameters:
document
- the json document to apply the path onrootDocument
- the root json document that started this evaluationconfiguration
- configuration to useforUpdate
- is this a read or a write operation- Returns:
- EvaluationContext containing results of evaluation
-
isDefinite
boolean isDefinite()- Returns:
- true id this path is definite
-
isFunctionPath
boolean isFunctionPath()- Returns:
- true id this path is a function
-
isRootPath
boolean isRootPath()- Returns:
- true id this path is starts with '$' and false if the path starts with '@'
-