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
|
java.lang.String |
getCompilerName()
Get the (local) name of a class that can be used to generate bytecode for this
system function
|
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, getStreamerNamedependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, importAttributes, isTrustedResultType, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCalleratomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheckclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitargumentArray, getGenregetLength, head, isStreamed, itemAt, iterate, iterator, reduce, subsequence, toGroundedValueasIterable, materializemakeRepeatablepublic 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 java.lang.String getCompilerName()
SystemFunctiongetCompilerName in class SystemFunctionCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.