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
public class ArrayFunctionSet extends BuiltInFunctionSet
Function signatures (and pointers to implementations) of the functions defined in XPath 3.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ArrayFunctionSet.ArrayAppend
Implementation of the function array:append(array, item()*) => arraystatic class
ArrayFunctionSet.ArrayBuild
Implementation of the proposed XP40 function array:build()static class
ArrayFunctionSet.ArrayEmpty
Implementation of the proposed 4.0 function array:empty(array)static class
ArrayFunctionSet.ArrayExists
Implementation of the proposed 4.0 function array:exists(array)static class
ArrayFunctionSet.ArrayFilter
Implementation of the function array:filter(array, function) => arraystatic class
ArrayFunctionSet.ArrayFlatten
Implementation of the function array:flatten => item()*static class
ArrayFunctionSet.ArrayFoldLeft
Implementation of the function array:fold-left(array, item()*, function) => arraystatic class
ArrayFunctionSet.ArrayFoldRight
Implementation of the function array:fold-left(array, item()*, function) => arraystatic class
ArrayFunctionSet.ArrayFoot
Implementation of the proposed 4.0 function array:foot(array) => item()*static class
ArrayFunctionSet.ArrayForEach
Implementation of the function array:for-each(array, function) => arraystatic class
ArrayFunctionSet.ArrayForEachPair
Implementation of the function array:for-each-pair(array, array, function) => arraystatic class
ArrayFunctionSet.ArrayFromSequence
Implementation of the function array:_from-sequence(item()*) => array(*) which is used internally for the implementation of array{} and of the saxon:array extensionstatic class
ArrayFunctionSet.ArrayGeneratingFunction
Abstract superclass for functions that produce an array, and that decide what kind of array implementation to use based on past experience.static class
ArrayFunctionSet.ArrayGet
Implementation of the function array:get(array, xs:integer) => item()*static class
ArrayFunctionSet.ArrayHead
Implementation of the function array:head(array) => item()*static class
ArrayFunctionSet.ArrayIndexWhere
Implementation of the function array:for-each-pair(array, array, function) => arraystatic class
ArrayFunctionSet.ArrayInsertBefore
Implementation of the function array:insert-before(array, xs:integer, item()*) => arraystatic class
ArrayFunctionSet.ArrayJoin
Implementation of the function array:join(arrays) => arraystatic class
ArrayFunctionSet.ArrayMembers
Implementation of the proposed XP40 function array:members(array(*)) => record(value)*static class
ArrayFunctionSet.ArrayOfMembers
Implementation of the proposed XP40 function array:of(parcel*) => arraystatic class
ArrayFunctionSet.ArrayPut
Implementation of the function array:put(arrays, index, newValue) => arraystatic class
ArrayFunctionSet.ArrayRemove
Implementation of the function array:remove(array, xs:integer) => arraystatic class
ArrayFunctionSet.ArrayReplace
Implementation of the function array:replace(array, position, action) => arraystatic class
ArrayFunctionSet.ArrayReverse
Implementation of the function array:reverse(array, xs:integer, xs:integer) => arraystatic class
ArrayFunctionSet.ArraySize
Implementation of the function array:size(array) => integerstatic class
ArrayFunctionSet.ArraySlice
Implementation of the function array:slice(array, start, end, step) => arraystatic class
ArrayFunctionSet.ArraySplit
Implementation of the function array:slice(array, start, end, step) => arraystatic class
ArrayFunctionSet.ArraySubarray
Implementation of the function array:subarray(array, xs:integer, xs:integer) => arraystatic class
ArrayFunctionSet.ArrayTail
Implementation of the function array:tail(array) => item()*static class
ArrayFunctionSet.ArrayToSequence
Implementation of the function array:_to-sequence(array) => item()* which is used internally for the implementation of array?*static class
ArrayFunctionSet.ArrayTrunk
Implementation of the function array:trunk(array) => item()*-
Nested classes/interfaces inherited from class net.sf.saxon.functions.registry.BuiltInFunctionSet
BuiltInFunctionSet.Entry
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
checkSubscript(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 intjava.lang.String
getConventionalPrefix()
Return a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.static ArrayFunctionSet
getInstance(int version)
NamespaceUri
getNamespace()
Return the namespace URI for the functions local to this function set.-
Methods inherited from class net.sf.saxon.functions.registry.BuiltInFunctionSet
bind, copy, field, getFunctionDetails, getFunctionItem, importFunctionSet, isAvailable, makeFunction, register, register, registerVariadic
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.functions.FunctionLibrary
setConfiguration
-
-
-
-
Method Detail
-
getInstance
public static ArrayFunctionSet getInstance(int version)
-
getNamespace
public NamespaceUri getNamespace()
Description copied from class:BuiltInFunctionSet
Return the namespace URI for the functions local to this function set.- Overrides:
getNamespace
in 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
public java.lang.String getConventionalPrefix()
Description copied from class:BuiltInFunctionSet
Return a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.- Overrides:
getConventionalPrefix
in classBuiltInFunctionSet
- Returns:
- the string "fn"
-
checkSubscript
public static int checkSubscript(IntegerValue subscript, int limit) throws XPathException
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
-
-