Constructor and Description |
---|
CompiledPath(RootPathToken root,
boolean isRootPath) |
Modifier and Type | Method and Description |
---|---|
EvaluationContext |
evaluate(Object document,
Object rootDocument,
Configuration configuration)
Evaluates this path
|
EvaluationContext |
evaluate(Object document,
Object rootDocument,
Configuration configuration,
boolean forUpdate)
Evaluates this path
|
RootPathToken |
getRoot() |
boolean |
isDefinite() |
boolean |
isFunctionPath() |
boolean |
isRootPath() |
String |
toString() |
public CompiledPath(RootPathToken root, boolean isRootPath)
public boolean isRootPath()
isRootPath
in interface Path
public EvaluationContext evaluate(Object document, Object rootDocument, Configuration configuration, boolean forUpdate)
Path
evaluate
in interface Path
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 operationpublic EvaluationContext evaluate(Object document, Object rootDocument, Configuration configuration)
Path
public boolean isDefinite()
isDefinite
in interface Path
public boolean isFunctionPath()
isFunctionPath
in interface Path
public RootPathToken getRoot()
Copyright © 2024. All rights reserved.