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
The parent of all node types which contains child nodes.
- Author:
- bratseth
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract List<ExpressionNode>children()Returns a read-only list containing the immediate children of this composite.abstract CompositeNodesetChildren(List<ExpressionNode> children) Returns a copy of this where the children is replaced by the given children.
-
Constructor Details
-
CompositeNode
public CompositeNode()
-
-
Method Details
-
children
Returns a read-only list containing the immediate children of this composite.- Returns:
- The children of this.
-
setChildren
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()
-