Interface EvaluationResultTree.Node

  • Enclosing class:
    EvaluationResultTree

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void accept​(EvaluationResultTree.Visitor visitor)
      Accept a visitor to this evaluation result tree node.
      java.util.List<EvaluationResultTree.Node> getChildren()
      Get the children of this evaluation result tree node.
      java.util.Collection<FHIRPathNode> getContext()
      Get the FHIRPath evaluator context associated with this evaluation result tree node.
      int getDepth()
      Get the depth of this evaluation result tree node.
      EvaluationResultTree.Node getParent()
      Get the parent of this evaluation result tree node.
      org.antlr.v4.runtime.ParserRuleContext getParserRuleContext()
      Get the parser rule context associated with this evaluation result tree node.
      java.util.Collection<FHIRPathNode> getResult()
      Get the FHIRPath evaluation result associated with this evaluation result tree node.
      java.lang.String getText()
      Get the text (expression, term, or literal) for this evaluation result tree node.
      boolean isInternal()
      Indicates whether this evaluation result tree node is an internal node.
      boolean isLeaf()
      Indicates whether this evaluation result tree node is a leaf node.
      boolean isRoot()
      Indicates whether this evaluation result tree node is the root node.
    • 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

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

        java.util.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

        java.util.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

        java.lang.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