Class CompositeNode

java.lang.Object
com.yahoo.searchlib.rankingexpression.rule.ExpressionNode
com.yahoo.searchlib.rankingexpression.rule.CompositeNode
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BooleanNode, EmbracedNode, FunctionNode, GeneratorLambdaFunctionNode, IfNode, LambdaFunctionNode, NegativeNode, OperationNode, ReferenceNode, TensorFunctionNode

public abstract class CompositeNode extends ExpressionNode
The parent of all node types which contains child nodes.
Author:
bratseth
See Also:
  • Constructor Details

    • CompositeNode

      public CompositeNode()
  • Method Details

    • children

      public abstract List<ExpressionNode> children()
      Returns a read-only list containing the immediate children of this composite.
      Returns:
      The children of this.
    • setChildren

      public abstract CompositeNode setChildren(List<ExpressionNode> children)
      Returns a copy of this where the children is replaced by the given children.
      Throws:
      IllegalArgumentException - if the given list of children has different size than children()