Class LoadXqueryModule
java.lang.Object
net.sf.saxon.functions.AbstractFunction
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.hof.LoadXqueryModule
- All Implemented Interfaces:
Callable, Function, GroundedValue, Item, Sequence
This class implements the function load-xquery-module(), which is a standard function in XPath 3.1.
It is classified as a higher-order function and therefore requires Saxon-PE or higher.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(XPathContext context, Sequence[] args) Invoke the functionmakeNewContext(XPathContext callingContext, ContextOriginator originator) Prepare an XPathContext object for evaluating the functionstatic OptionsParameterMethods inherited from class SystemFunction
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getCompilerName, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamerName, getUniStringArg, hashCode, importAttributes, isSequenceVariadic, isTrustedResultType, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCallerMethods inherited from class AbstractFunction
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getSerialNumber, getUnicodeStringValue, isArray, isMap, simplify, typeCheckMethods inherited from interface GroundedValue
asIterable, concatenate, containsNode, materializeMethods inherited from interface Item
getLength, getStringValue, head, isStreamed, itemAt, iterate, reduce, subsequenceMethods inherited from interface Sequence
makeRepeatable
-
Constructor Details
-
LoadXqueryModule
public LoadXqueryModule()
-
-
Method Details
-
makeOptionsParameter
-
makeNewContext
Prepare an XPathContext object for evaluating the function- Specified by:
makeNewContextin interfaceFunction- Overrides:
makeNewContextin classAbstractFunction- Parameters:
callingContext- the XPathContext of the function calling expressionoriginator- identifies the location of the caller for diagnostics- Returns:
- a suitable context for evaluating the function (which may or may not be the same as the caller's context)
-
call
Invoke the function- Specified by:
callin interfaceCallable- Parameters:
context- the XPath dynamic evaluation contextargs- the actual arguments to be supplied- Returns:
- the result of invoking the function
- Throws:
XPathException- if a dynamic error occurs within the function
-