Class SumFunction
java.lang.Object
org.jaxen.function.SumFunction
- All Implemented Interfaces:
Function
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SumFunction
public SumFunction()Create a newSumFunctionobject.
-
-
Method Details
-
call
Returns the sum of its arguments.- Specified by:
callin interfaceFunction- Parameters:
context- the context at the point in the expression when the function is calledargs- a list that contains exactly one item, also aList- Returns:
- a
Doublecontaining the sum of the items inargs.get(0) - Throws:
FunctionCallException- ifargshas more or less than one item; or if the first argument is not aList
-