public class MemoFunction extends UserFunction
UserFunction.Determinism
evaluator
Constructor and Description |
---|
MemoFunction() |
Modifier and Type | Method and Description |
---|---|
Sequence<?> |
call(XPathContext context,
Sequence[] actualArgs)
Call this function to return a value.
|
void |
computeEvaluationMode()
Determine the preferred evaluation mode for this function
|
boolean |
isMemoFunction()
Ask whether this function is a memo function
|
acceptsNodesWithoutAtomization, atomize, call, callUpdating, containsTailCalls, deepEquals, effectiveBooleanValue, export, getAnnotations, getArgumentType, getArity, getComponentKind, getConstructType, getDeclaredResultType, getDeclaredStreamability, getDescription, getDeterminism, getEvaluator, getFunctionItemType, getFunctionName, getLength, getObjectName, getOperandRoles, getParameterDefinitions, getReferenceCount, getResultType, getStringValue, getStringValueCS, getSymbolicName, head, incrementReferenceCount, isArray, isExportable, isInlineable, isMap, isOverrideExtensionFunction, isTailRecursive, isTrustedResultType, isUpdating, itemAt, iterate, makeNewContext, markAsInlined, prepareForStreaming, process, reduce, setAnnotations, setDeclaredStreamability, setDeterminism, setEvaluationMode, setFunctionName, setInlineable, setOverrideExtensionFunction, setParameterDefinitions, setResultType, setTailRecursive, setUpdating, subsequence, typeCheck
allocateAllBindingSlots, allocateBindingSlotsRecursive, getBody, getColumnNumber, getDeclaredVisibility, getDeclaringComponent, getLineNumber, getLocation, getPackageData, getProperties, getProperty, getPublicId, getRetainedStaticContext, getStackFrameMap, getSystemId, makeDeclaringComponent, obtainDeclaringComponent, saveLocation, setBody, setChildExpression, setDeclaredVisibility, setDeclaringComponent, setLineNumber, setPackageData, setRetainedStaticContext, setStackFrameMap, setSystemId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
argumentArray, getGenre, toShortString
isStreamed, iterator, toGroundedValue
asIterable, materialize
makeRepeatable
public void computeEvaluationMode()
computeEvaluationMode
in class UserFunction
public boolean isMemoFunction()
isMemoFunction
in class UserFunction
public Sequence<?> call(XPathContext context, Sequence[] actualArgs) throws XPathException
call
in interface Callable
call
in interface Function
call
in class UserFunction
actualArgs
- the arguments supplied to the function. These must have the correct
types required by the function signature (it is the caller's responsibility to check this).
It is acceptable to supply a Closure
to represent a value whose
evaluation will be delayed until it is needed. The array must be the correct size to match
the number of arguments: again, it is the caller's responsibility to check this.context
- This provides the run-time context for evaluating the function. It is the caller's
responsibility to allocate a "clean" context for the function to use; the context that is provided
will be overwritten by the function.XPathException
- if a dynamic error occurs within the functionCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.