Interface EvaluationResultTree.Node

  • Enclosing class:
    EvaluationResultTree

    public static interface EvaluationResultTree.Node
    An interface that represents a node in the evaluation result tree
    • Method Detail

      • getParserRuleContext

        org.antlr.v4.runtime.ParserRuleContext getParserRuleContext()
        Get the parser rule context associated with this evaluation result tree node.
        Returns:
        the parser rule context associated with this evaluation result tree node
      • getContext

        Collection<FHIRPathNode> getContext()
        Get the FHIRPath evaluator context associated with this evaluation result tree node.
        Returns:
        the FHIRPath evaluator context
      • getResult

        Collection<FHIRPathNode> getResult()
        Get the FHIRPath evaluation result associated with this evaluation result tree node.
        Returns:
        the FHIRPath evaluation result associated with this evaluation result tree node.
      • getParent

        EvaluationResultTree.Node getParent()
        Get the parent of this evaluation result tree node.
        Returns:
        the parent of this evaluation result tree node, or null if not exists
      • getChildren

        List<EvaluationResultTree.Node> getChildren()
        Get the children of this evaluation result tree node.
        Returns:
        the children of this evaluation result tree node
      • isRoot

        boolean isRoot()
        Indicates whether this evaluation result tree node is the root node.
        Returns:
        true if this evaluation result tree node is the root node, false otherwise
      • isInternal

        boolean isInternal()
        Indicates whether this evaluation result tree node is an internal node.
        Returns:
        true if this evaluation result tree node is an internal node, false otherwise
      • isLeaf

        boolean isLeaf()
        Indicates whether this evaluation result tree node is a leaf node.
        Returns:
        true if this evaluation result tree node is a leaf node, false otherwise
      • getDepth

        int getDepth()
        Get the depth of this evaluation result tree node.
        Returns:
        the depth of this evaluation result tree node
      • getText

        String getText()
        Get the text (expression, term, or literal) for this evaluation result tree node.
        Returns:
        the text (expression, term, or literal) for this evaluation result tree node.
      • accept

        void accept​(EvaluationResultTree.Visitor visitor)
        Accept a visitor to this evaluation result tree node.
        Parameters:
        visitor - the visitor