public class Sum extends FoldingFunction
| Constructor and Description |
|---|
Sum() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCardinality(Expression[] arguments)
Get the cardinality, given knowledge of the actual arguments
|
ExpressionCompiler |
getExpressionCompiler()
Return the compiler of the Sum expression
|
Fold |
getFold(XPathContext context,
Sequence... additionalArguments)
Create the Fold object which actually performs the evaluation.
|
ItemType |
getResultItemType(Expression[] args)
Get the return type, given knowledge of the actual arguments
|
static AtomicValue |
total(SequenceIterator in,
XPathContext context,
Location locator)
Static method to compute a total, invoked from compiled bytecode
|
call, getStreamingAdjunctequals, export, exportAttributes, getArity, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getOperandRoles, getRequiredType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, importAttributes, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, typeCheckCalleratomize, deepEquals, effectiveBooleanValue, getStringValue, getStringValueCS, isArray, isMap, optimize, simplify, typeCheckgetLength, head, itemAt, iterate, reduce, subsequenceclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, head, itemAt, reduce, subsequencepublic ItemType getResultItemType(Expression[] args)
SystemFunctiongetResultItemType in class SystemFunctionargs - the actual arguments suppliedpublic int getCardinality(Expression[] arguments)
SystemFunctiongetCardinality in class SystemFunctionarguments - the actual arguments suppliedpublic Fold getFold(XPathContext context, Sequence... additionalArguments) throws XPathException
getFold in class FoldingFunctioncontext - the dynamic evaluation contextadditionalArguments - the values of all arguments other than the first.XPathException - if a dynamic error occurspublic static AtomicValue total(SequenceIterator in, XPathContext context, Location locator) throws XPathException
in - the sequence of items to be summedcontext - dynamic context for evaluationlocator - expression location for diagnosticsXPathException - if a dynamic error occurspublic ExpressionCompiler getExpressionCompiler()
getExpressionCompiler in class SystemFunctionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.