public class MemoFunction extends UserFunction
evaluationMode
body
Constructor and Description |
---|
MemoFunction() |
Modifier and Type | Method and Description |
---|---|
Sequence |
call(XPathContextMajor 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
|
asCallable, call, callUpdating, containsTailCalls, getArgumentType, getComponentKind, getConstructType, getDeclaredResultType, getEvaluationMode, getFunctionName, getFunctionType, getNumberOfArguments, getObjectName, getParameterDefinitions, getResultType, getSymbolicName, isInlineable, isTailRecursive, isUpdating, iterateEvents, process, setAnnotationMap, setFunctionName, setInlineable, setParameterDefinitions, setResultType, setTailRecursive, setUpdating
allocateAllBindingSlots, allocateBindingSlotsRecursive, getBody, getColumnNumber, getConfiguration, getContainerGranularity, getDeclaringComponent, getHostLanguage, getLineNumber, getLocationProvider, getPackageData, getProperties, getProperty, getPublicId, getStackFrameMap, getSystemId, makeDeclaringComponent, setBody, setHostLanguage, setLineNumber, setPackageData, setStackFrameMap, setSystemId
public void computeEvaluationMode()
computeEvaluationMode
in class UserFunction
public boolean isMemoFunction()
isMemoFunction
in class UserFunction
public Sequence call(XPathContextMajor context, Sequence[] actualArgs) throws XPathException
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 while evaluating the functionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.