Class EvaluationResultTree
- java.lang.Object
-
- org.linuxforhealth.fhir.path.util.EvaluationResultTree
-
public class EvaluationResultTree extends java.lang.Object
A tree of nodes used to store evaluation results for each parser rule context visited by the evaluator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EvaluationResultTree.BuildingEvaluationListener
An implementation of EvaluationListener that builds an EvaluationResultTreestatic interface
EvaluationResultTree.Node
An interface that represents a node in the evaluation result treestatic interface
EvaluationResultTree.Visitor
A visitor interface used to visit nodes in an evaluation result tree
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<EvaluationResultTree.Node>
getLeaves()
Get the leaves of this evaluation result tree.java.util.List<EvaluationResultTree.Node>
getPathToRoot(EvaluationResultTree.Node node)
Get the path from the given node to the root node of this evaluation result tree.EvaluationResultTree.Node
getRoot()
Get the root node of this evaluation result tree.
-
-
-
Method Detail
-
getRoot
public EvaluationResultTree.Node getRoot()
Get the root node of this evaluation result tree.- Returns:
- the root node of this evaluation result tree
-
getPathToRoot
public java.util.List<EvaluationResultTree.Node> getPathToRoot(EvaluationResultTree.Node node)
Get the path from the given node to the root node of this evaluation result tree.- Parameters:
node
- the node- Returns:
- the path from the given node to the root node of this evaluation result tree
-
getLeaves
public java.util.List<EvaluationResultTree.Node> getLeaves()
Get the leaves of this evaluation result tree.- Returns:
- the leaves of this evaluation result tree
-
-