| Constructor and Description |
|---|
CompiledPath(RootPathToken root,
boolean isRootPath) |
| Modifier and Type | Method and Description |
|---|---|
EvaluationContext |
evaluate(java.lang.Object document,
java.lang.Object rootDocument,
Configuration configuration)
Evaluates this path
|
EvaluationContext |
evaluate(java.lang.Object document,
java.lang.Object rootDocument,
Configuration configuration,
boolean forUpdate)
Evaluates this path
|
RootPathToken |
getRoot() |
boolean |
isDefinite() |
boolean |
isFunctionPath() |
boolean |
isRootPath() |
java.lang.String |
toString() |
public CompiledPath(RootPathToken root, boolean isRootPath)
public boolean isRootPath()
isRootPath in interface Pathpublic EvaluationContext evaluate(java.lang.Object document, java.lang.Object rootDocument, Configuration configuration, boolean forUpdate)
Pathevaluate in interface Pathdocument - 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 operationpublic EvaluationContext evaluate(java.lang.Object document, java.lang.Object rootDocument, Configuration configuration)
Pathpublic boolean isDefinite()
isDefinite in interface Pathpublic boolean isFunctionPath()
isFunctionPath in interface Pathpublic java.lang.String toString()
toString in class java.lang.Objectpublic RootPathToken getRoot()