Package com.saxonica.xsltextn.pedigree
Class DelegatingArrayItem
- java.lang.Object
- 
- net.sf.saxon.ma.arrays.ArrayItem
- 
- net.sf.saxon.ma.arrays.AbstractArrayItem
- 
- com.saxonica.xsltextn.pedigree.DelegatingArrayItem
 
 
 
- 
- All Implemented Interfaces:
- Callable,- Function,- GroundedValue,- Item,- Sequence
 - Direct Known Subclasses:
- PedigreeArrayItem
 
 public abstract class DelegatingArrayItem extends AbstractArrayItem ADelegatingArrayItemis an abstract class representing an array that is implemented by delegating all array-related functionality to a base class. Unless any methods are overridden, the functionality is identical to that of the wrapped array item.Note that methods such as put(int, net.sf.saxon.om.GroundedValue)that create a new array will (unless overridden) simply delegate to the base array, and the new array will therefore not be a delegating array.
- 
- 
Constructor SummaryConstructors Constructor Description DelegatingArrayItem(ArrayItem base)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intarrayLength()Get the number of members in the arrayArrayItemconcat(ArrayItem other)Concatenate this array with anotherGroundedValueget(int index)Get a member of the arrayArrayItemgetBaseItem()ArrayIteminsert(int position, GroundedValue member)Insert a new member into an arraybooleanisEmpty()Ask whether the array is emptyjava.lang.Iterable<GroundedValue>members()Get the list of all members of the arrayArrayItemput(int index, GroundedValue newValue)Replace a member of the arrayArrayItemremove(int index)Remove a member from the arrayArrayItemremoveSeveral(IntSet positions)Remove zero or more members from the arrayArrayItemsubArray(int start, int end)Get a sub-array given a start and end position- 
Methods inherited from class net.sf.saxon.ma.arrays.AbstractArrayItematomize, call, deepEquals, effectiveBooleanValue, export, getAnnotations, getArity, getDescription, getFunctionItemType, getFunctionName, getMemberType, getOperandRoles, getUnicodeStringValue, isTrustedResultType, makeNewContext, toString
 - 
Methods inherited from class net.sf.saxon.ma.arrays.ArrayItemgetGenre, getSerialNumber, isArray, isMap, toShortString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface net.sf.saxon.om.FunctionisSequenceVariadic
 - 
Methods inherited from interface net.sf.saxon.om.GroundedValueasIterable, concatenate, containsNode, materialize
 - 
Methods inherited from interface net.sf.saxon.om.ItemgetLength, getStringValue, head, isStreamed, itemAt, iterate, reduce, subsequence
 - 
Methods inherited from interface net.sf.saxon.om.SequencemakeRepeatable
 
- 
 
- 
- 
- 
Constructor Detail- 
DelegatingArrayItempublic DelegatingArrayItem(ArrayItem base) 
 
- 
 - 
Method Detail- 
getpublic GroundedValue get(int index) Description copied from class:ArrayItemGet a member of the array
 - 
putpublic ArrayItem put(int index, GroundedValue newValue) Description copied from class:ArrayItemReplace a member of the array
 - 
arrayLengthpublic int arrayLength() Description copied from class:ArrayItemGet the number of members in the arrayNote: the method always returns 1, because an array is an item- Specified by:
- arrayLengthin class- ArrayItem
- Returns:
- the number of members in this array.
 
 - 
isEmptypublic boolean isEmpty() Description copied from class:ArrayItemAsk whether the array is empty
 - 
memberspublic java.lang.Iterable<GroundedValue> members() Description copied from class:ArrayItemGet the list of all members of the array
 - 
concatpublic ArrayItem concat(ArrayItem other) Description copied from class:ArrayItemConcatenate this array with another
 - 
removepublic ArrayItem remove(int index) Description copied from class:ArrayItemRemove a member from the array
 - 
removeSeveralpublic ArrayItem removeSeveral(IntSet positions) Description copied from class:ArrayItemRemove zero or more members from the array- Specified by:
- removeSeveralin class- ArrayItem
- Parameters:
- positions- the positions of the members to be removed (zero-based). A value that is out of range is ignored.
- Returns:
- a new array in which the requested member has been removed
 
 - 
subArraypublic ArrayItem subArray(int start, int end) Description copied from class:ArrayItemGet a sub-array given a start and end position
 - 
insertpublic ArrayItem insert(int position, GroundedValue member) Description copied from class:ArrayItemInsert a new member into an array
 - 
getBaseItempublic ArrayItem getBaseItem() 
 
- 
 
-