Package com.ibm.fhir.path.util
Interface EvaluationResultTree.Node
-
- Enclosing class:
- EvaluationResultTree
public static interface EvaluationResultTree.NodeAn interface that represents a node in the evaluation result tree
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(EvaluationResultTree.Visitor visitor)Accept a visitor to this evaluation result tree node.List<EvaluationResultTree.Node>getChildren()Get the children of this evaluation result tree node.Collection<FHIRPathNode>getContext()Get the FHIRPath evaluator context associated with this evaluation result tree node.intgetDepth()Get the depth of this evaluation result tree node.EvaluationResultTree.NodegetParent()Get the parent of this evaluation result tree node.org.antlr.v4.runtime.ParserRuleContextgetParserRuleContext()Get the parser rule context associated with this evaluation result tree node.Collection<FHIRPathNode>getResult()Get the FHIRPath evaluation result associated with this evaluation result tree node.StringgetText()Get the text (expression, term, or literal) for this evaluation result tree node.booleanisInternal()Indicates whether this evaluation result tree node is an internal node.booleanisLeaf()Indicates whether this evaluation result tree node is a leaf node.booleanisRoot()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
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
-
-