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, getStreamingAdjunct
equals, 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, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getStringValue, getStringValueCS, isArray, isMap, optimize, simplify, typeCheck
getLength, head, itemAt, iterate, reduce, subsequence
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLength, head, itemAt, reduce, subsequence
public ItemType getResultItemType(Expression[] args)
SystemFunction
getResultItemType
in class SystemFunction
args
- the actual arguments suppliedpublic int getCardinality(Expression[] arguments)
SystemFunction
getCardinality
in class SystemFunction
arguments
- the actual arguments suppliedpublic Fold getFold(XPathContext context, Sequence... additionalArguments) throws XPathException
getFold
in class FoldingFunction
context
- 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 SystemFunction
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.