blob: 0ce586579aff2959c3d0d912d8e257b495819b8d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchlib.expression;
/**
* This function is an instruction to add all arguments.
*
* @author baldersheim
* @author <a href="mailto:simon@yahoo-inc.com">Simon Thoresen</a>
*/
public class AddFunctionNode extends NumericFunctionNode {
public static final int classId = registerClass(0x4000 + 61, AddFunctionNode.class);
@Override
protected int onGetClassId() {
return classId;
}
@Override
protected void onArgument(final ResultNode arg, ResultNode result) {
((NumericResultNode)result).add(arg);
}
}
|