Package com.jayway.jsonpath.internal
Interface Path
-
- All Known Implementing Classes:
CompiledPath
public interface Path
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EvaluationContext
evaluate(java.lang.Object document, java.lang.Object rootDocument, Configuration configuration)
Evaluates this pathEvaluationContext
evaluate(java.lang.Object document, java.lang.Object rootDocument, Configuration configuration, boolean forUpdate)
Evaluates this pathboolean
isDefinite()
boolean
isFunctionPath()
boolean
isRootPath()
-
-
-
Method Detail
-
evaluate
EvaluationContext evaluate(java.lang.Object document, java.lang.Object rootDocument, Configuration configuration)
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(java.lang.Object document, java.lang.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 '@'
-
-