net.sf.saxon.value
public final class ShareableSequence extends Value
Constructor Summary | |
---|---|
ShareableSequence(List list)
Construct an sequence from an array of items. |
Method Summary | |
---|---|
boolean | effectiveBooleanValue(XPathContext context)
Get the effective boolean value |
int | getCardinality()
Determine the cardinality
|
int | getImplementationMethod()
An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process().
|
ItemType | getItemType(TypeHierarchy th)
Get the (lowest common) item type
|
int | getLength()
Get the number of items in the sequence
|
List | getList()
Get the underlying list |
boolean | isShareable()
Determine whether another value can share this list. |
Item | itemAt(int n)
Get the n'th item in the sequence (starting with 0 as the first item)
|
SequenceIterator | iterate(XPathContext context)
Return an iterator over this sequence.
|
Value | reduce()
Reduce a value to its simplest form. |
Value | simplify()
Simplify this value |
Parameters: list the list of items to be included in the sequence
Returns: the cardinality of the sequence, using the constants defined in net.sf.saxon.value.Cardinality
See Also: Cardinality
Parameters: th
Returns: integer identifying an item type to which all the items in this sequence conform
Returns: the number of items in the sequence
Parameters: n the position of the required item
Returns: the n'th item in the sequence
Parameters: context dynamic evaluation context; not used in this implementation of the method
Returns: the required SequenceIterator, positioned at the start of the sequence