Package net.sf.saxon.ma.arrays
This package implements arrays, as introduced in XPath/XQuery 3.1: arrays provide a list-like data structure that (unlike sequences) allows nesting.
Arrays are immutable, so that adding a new entry to an array creates a new array.
The entries in a array are arbitrary XDM sequences.
There are functions (each supported by its own implementation class) to create a new array, to add an entry to a array, to get an entry from an array, to get the size of an array, and so on..
-
Class Summary Class Description AbstractArrayItem An abstract implementation of XDM array items, containing methods that can be implemented generically.ArrayFunctionSet Function signatures (and pointers to implementations) of the functions defined in XPath 3.1ArrayFunctionSet.ArrayAppend Implementation of the function array:append(array, item()*) => arrayArrayFunctionSet.ArrayBuild Implementation of the proposed XP40 function array:build()ArrayFunctionSet.ArrayEmpty Implementation of the proposed 4.0 function array:empty(array)ArrayFunctionSet.ArrayExists Implementation of the proposed 4.0 function array:exists(array)ArrayFunctionSet.ArrayFilter Implementation of the function array:filter(array, function) => arrayArrayFunctionSet.ArrayFlatten Implementation of the function array:flatten => item()*ArrayFunctionSet.ArrayFoldLeft Implementation of the function array:fold-left(array, item()*, function) => arrayArrayFunctionSet.ArrayFoldRight Implementation of the function array:fold-left(array, item()*, function) => arrayArrayFunctionSet.ArrayFoot Implementation of the proposed 4.0 function array:foot(array) => item()*ArrayFunctionSet.ArrayForEach Implementation of the function array:for-each(array, function) => arrayArrayFunctionSet.ArrayForEachPair Implementation of the function array:for-each-pair(array, array, function) => arrayArrayFunctionSet.ArrayFromSequence Implementation of the function array:_from-sequence(item()*) => array(*) which is used internally for the implementation of array{} and of the saxon:array extensionArrayFunctionSet.ArrayGeneratingFunction Abstract superclass for functions that produce an array, and that decide what kind of array implementation to use based on past experience.ArrayFunctionSet.ArrayGet Implementation of the function array:get(array, xs:integer) => item()*ArrayFunctionSet.ArrayHead Implementation of the function array:head(array) => item()*ArrayFunctionSet.ArrayIndexWhere Implementation of the function array:for-each-pair(array, array, function) => arrayArrayFunctionSet.ArrayInsertBefore Implementation of the function array:insert-before(array, xs:integer, item()*) => arrayArrayFunctionSet.ArrayJoin Implementation of the function array:join(arrays) => arrayArrayFunctionSet.ArrayMembers Implementation of the proposed XP40 function array:members(array(*)) => record(value)*ArrayFunctionSet.ArrayOfMembers Implementation of the proposed XP40 function array:of(parcel*) => arrayArrayFunctionSet.ArrayPut Implementation of the function array:put(arrays, index, newValue) => arrayArrayFunctionSet.ArrayRemove Implementation of the function array:remove(array, xs:integer) => arrayArrayFunctionSet.ArrayReplace Implementation of the function array:replace(array, position, action) => arrayArrayFunctionSet.ArrayReverse Implementation of the function array:reverse(array, xs:integer, xs:integer) => arrayArrayFunctionSet.ArraySize Implementation of the function array:size(array) => integerArrayFunctionSet.ArraySlice Implementation of the function array:slice(array, start, end, step) => arrayArrayFunctionSet.ArraySplit Implementation of the function array:slice(array, start, end, step) => arrayArrayFunctionSet.ArraySubarray Implementation of the function array:subarray(array, xs:integer, xs:integer) => arrayArrayFunctionSet.ArrayTail Implementation of the function array:tail(array) => item()*ArrayFunctionSet.ArrayToSequence Implementation of the function array:_to-sequence(array) => item()* which is used internally for the implementation of array?*ArrayFunctionSet.ArrayTrunk Implementation of the function array:trunk(array) => item()*ArrayItem Interface supported by different implementations of an XDM array item.ArrayItemType An instance of this class represents a specific array item type, for example function(xs:int) as xs:booleanArraySort Implementation of the extension function array:sort(array, function) => arrayImmutableArrayItem Implementation of ArrayItem backed by a persistent immutable array, so that operations that "update" the array do not have to copy the whole arraySimpleArrayItem A simple implementation of XDM array items, in which the array is backed by a Java List.SquareArrayConstructor An expression that delivers a fixed size array whose members are the result of evaluating corresponding expressions: [a,b,c,d]