Class 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
    • 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