public abstract class PathEvaluatingTraversal extends Object
| Constructor and Description |
|---|
PathEvaluatingTraversal(String dotNotation) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Traversr |
createTraversr(List<String> paths) |
List<String> |
evaluate(WalkedPath walkedPath)
Use the supplied WalkedPath, in the evaluation of each of our PathElements.
|
PathElement |
get(int index) |
String |
getCanonicalForm()
Testing method.
|
Optional<Object> |
read(Object data,
WalkedPath walkedPath) |
int |
size() |
void |
write(Object data,
Map<String,Object> output,
WalkedPath walkedPath)
Use the supplied WalkedPath, in the evaluation of each of our PathElements to
build a concrete output path.
|
public PathEvaluatingTraversal(String dotNotation)
public void write(Object data, Map<String,Object> output, WalkedPath walkedPath)
data - data to writeoutput - data structure we are going to write the data towalkedPath - reference used to lookup reference values like "&1(2)"public Optional<Object> read(Object data, WalkedPath walkedPath)
public List<String> evaluate(WalkedPath walkedPath)
walkedPath - used to lookup/evaluate PathElement references values like "&1(2)"public int size()
public PathElement get(int index)
public String getCanonicalForm()
Copyright © 2023. All rights reserved.