Class CompositeNode
- java.lang.Object
-
- com.yahoo.searchlib.rankingexpression.rule.ExpressionNode
-
- com.yahoo.searchlib.rankingexpression.rule.CompositeNode
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ArithmeticNode
,BooleanNode
,EmbracedNode
,FunctionNode
,GeneratorLambdaFunctionNode
,IfNode
,LambdaFunctionNode
,NegativeNode
,ReferenceNode
,TensorFunctionNode
public abstract class CompositeNode extends ExpressionNode
The parent of all node types which contains child nodes.- Author:
- bratseth
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompositeNode()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract List<ExpressionNode>
children()
Returns a read-only list containing the immediate children of this compositeabstract CompositeNode
setChildren(List<ExpressionNode> children)
Returns a copy of this where the children is replaced by the given children.
-
-
-
Method Detail
-
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()
-
-