Package net.sf.saxon.ma.arrays
Class ArrayFunctionSet
java.lang.Object
net.sf.saxon.functions.registry.BuiltInFunctionSet
net.sf.saxon.ma.arrays.ArrayFunctionSet
- All Implemented Interfaces:
FunctionLibrary
Function signatures (and pointers to implementations) of the functions defined in XPath 2.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation of the function array:append(array, item()*) => arraystatic classImplementation of the function array:filter(array, function) => arraystatic classImplementation of the function array:flatten => item()*static classImplementation of the function array:fold-left(array, item()*, function) => arraystatic classImplementation of the function array:fold-left(array, item()*, function) => arraystatic classImplementation of the function array:for-each(array, function) => arraystatic classImplementation of the function array:for-each-pair(array, array, function) => arraystatic classImplementation of the function array:_from-sequence(item()*) => array(*) which is used internally for the implementation of array{} and of the saxon:array extensionstatic classImplementation of the function array:get(array, xs:integer) => item()*static classImplementation of the function array:head(array) => item()*static classImplementation of the function array:insert-before(array, xs:integer, item()*) => arraystatic classImplementation of the function array:join(arrays) => arraystatic classImplementation of the function array:put(arrays, index, newValue) => arraystatic classImplementation of the function array:remove(array, xs:integer) => arraystatic classImplementation of the function array:reverse(array, xs:integer, xs:integer) => arraystatic classImplementation of the function array:size(array) => integerstatic classImplementation of the function array:subarray(array, xs:integer, xs:integer) => arraystatic classImplementation of the function array:tail(array) => item()*static classImplementation of the function array:_to-sequence(array) => item()* which is used internally for the implementation of array?*Nested classes/interfaces inherited from class net.sf.saxon.functions.registry.BuiltInFunctionSet
BuiltInFunctionSet.Entry -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcheckSubscript(IntegerValue subscript, int limit) Check that a number proposed for use as a subscript is greater than zero and less than the maximum subscript allowed by the implementation (2^31-1), returning the value as a Java intReturn a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.static ArrayFunctionSetReturn the namespace URI for the functions local to this function set.Methods inherited from class net.sf.saxon.functions.registry.BuiltInFunctionSet
bind, copy, getFunctionDetails, getFunctionItem, importFunctionSet, isAvailable, makeFunction, register, registerReducedArityVariantsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.functions.FunctionLibrary
setConfiguration
-
Field Details
-
THE_INSTANCE
-
-
Constructor Details
-
ArrayFunctionSet
public ArrayFunctionSet()
-
-
Method Details
-
getInstance
-
getNamespace
Description copied from class:BuiltInFunctionSetReturn the namespace URI for the functions local to this function set.- Overrides:
getNamespacein classBuiltInFunctionSet- Returns:
- the namespace URI of the functions local to this function set. Note that functions imported from another function set may have a different namespace URI.
-
getConventionalPrefix
Description copied from class:BuiltInFunctionSetReturn a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.- Overrides:
getConventionalPrefixin classBuiltInFunctionSet
-
checkSubscript
Check that a number proposed for use as a subscript is greater than zero and less than the maximum subscript allowed by the implementation (2^31-1), returning the value as a Java int- Parameters:
subscript- the proposed subscript (one-based)limit- the upper limit allowed (usually the size of the array, sometimes arraysize + 1)- Returns:
- the proposed subscript as an int, if it is in range (still one-based)
- Throws:
XPathException- if the subscript is 0, negative, or outside the permitted range
-