org.exolab.adaptx.xpath.functions
public class SumFunctionCall extends FunctionCallImpl
Version: $Revision: 3736 $
Constructor Summary | |
---|---|
SumFunctionCall()
Creates a new SumFunctionCall |
Method Summary | |
---|---|
double | computeSum(NodeSet nodeSet)
Computes the sum of the given NodeSet. |
XPathResult | evaluate(XPathContext context)
Evaluates the expression and returns the XPath result.
|
Parameters: nodeSet the NodeSet to the compute the sum of
Returns: the sum as a double
Throws: XPathException when a non-numeric value is encountered.
Parameters: context The XPathContext to use during evaluation.
Returns: The XPathResult (not null).
Throws: XPathException if an error occured while evaluating this expression.