| java.lang.Object net.sf.saxon.value.Value net.sf.saxon.value.ShareableSequence
ShareableSequence | final public class ShareableSequence extends Value (Code) | | A sequence value implemented extensionally using an extensible List whose leading part can be shared
with other sequence values. The list can be appended to by other users (at most one other user!),
but the items within the range used by this sequence value cannot be modified.
|
ShareableSequence | public ShareableSequence(List list)(Code) | | Construct an sequence from an array of items. Note, the list of items is used as is,
which means the caller must not subsequently change its contents; however it is permitted
to subsequently append items to the list (indeed, that is the raison d'etre of this class)
Parameters: list - the list of items to be included in the sequence |
getCardinality | public int getCardinality()(Code) | | Determine the cardinality
the cardinality of the sequence, using the constants defined innet.sf.saxon.value.Cardinality See Also: Cardinality |
getImplementationMethod | public int getImplementationMethod()(Code) | | An implementation of Expression must provide at least one of the methods evaluateItem(), iterate(), or process().
This method indicates which of these methods is preferred.
|
getItemType | public ItemType getItemType(TypeHierarchy th)(Code) | | Get the (lowest common) item type
integer identifying an item type to which all the items in thissequence conform Parameters: th - |
getLength | public int getLength()(Code) | | Get the number of items in the sequence
the number of items in the sequence |
getList | public List getList()(Code) | | Get the underlying list
|
isShareable | public boolean isShareable()(Code) | | Determine whether another value can share this list. This is true provided the list has
not already been extended by another value.
|
itemAt | public Item itemAt(int n)(Code) | | Get the n'th item in the sequence (starting with 0 as the first item)
Parameters: n - the position of the required item the n'th item in the sequence |
iterate | public SequenceIterator iterate(XPathContext context)(Code) | | Return an iterator over this sequence.
Parameters: context - dynamic evaluation context; not used in thisimplementation of the method the required SequenceIterator, positioned at the start of thesequence |
reduce | public Value reduce()(Code) | | Reduce a value to its simplest form. If the value is a closure or some other form of deferred value
such as a FunctionCallPackage, then it is reduced to a SequenceExtent. If it is a SequenceExtent containing
a single item, then it is reduced to that item. One consequence that is exploited by class FilterExpression
is that if the value is a singleton numeric value, then the result will be an instance of NumericValue
|
simplify | public Value simplify()(Code) | | Simplify this value
|
Fields inherited from net.sf.saxon.value.Value | final public static Class[] EMPTY_CLASS_ARRAY(Code)(Java Doc)
|
Methods inherited from net.sf.saxon.value.Value | public static Item asItem(ValueRepresentation value, XPathContext context) throws XPathException(Code)(Java Doc) public static SequenceIterator asIterator(ValueRepresentation val, XPathContext context) throws XPathException(Code)(Java Doc) public static Value asValue(ValueRepresentation val)(Code)(Java Doc) public void checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole) throws XPathException(Code)(Java Doc) public static CharSequence collapseWhitespace(CharSequence in)(Code)(Java Doc) public static Object convert(Item item) throws XPathException(Code)(Java Doc) public static Value convertJavaObjectToXPath(Object object, SequenceType requiredType, Configuration config) throws XPathException(Code)(Java Doc) public Object convertToJava(Class target, XPathContext context) throws XPathException(Code)(Java Doc) public void display(int level, NamePool pool, PrintStream out)(Code)(Java Doc) public boolean effectiveBooleanValue(XPathContext context) throws XPathException(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public String evaluateAsString(XPathContext context) throws XPathException(Code)(Java Doc) public Item evaluateItem(XPathContext context) throws XPathException(Code)(Java Doc) public int getCardinality()(Code)(Java Doc) final public int getDependencies()(Code)(Java Doc) public ItemType getItemType(TypeHierarchy th)(Code)(Java Doc) public static SequenceIterator getIterator(ValueRepresentation val) throws XPathException(Code)(Java Doc) public int getLength() throws XPathException(Code)(Java Doc) final public Container getParentExpression()(Code)(Java Doc) public int getSpecialProperties()(Code)(Java Doc) public String getStringValue() throws XPathException(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public Item itemAt(int n) throws XPathException(Code)(Java Doc) final public Iterator iterateSubExpressions()(Code)(Java Doc) public static QNameValue makeQNameValue(Object object, Configuration config)(Code)(Java Doc) public static CharSequence normalizeWhitespace(CharSequence in)(Code)(Java Doc) final public Expression optimize(Optimizer opt, StaticContext env, ItemType contextItemType)(Code)(Java Doc) public void process(XPathContext context) throws XPathException(Code)(Java Doc) final public Expression promote(PromotionOffer offer)(Code)(Java Doc) public Value reduce() throws XPathException(Code)(Java Doc) public boolean schemaEquals(Value obj)(Code)(Java Doc) final public Expression simplify(StaticContext env)(Code)(Java Doc) public static double stringToNumber(CharSequence s) throws NumberFormatException(Code)(Java Doc) public String toString()(Code)(Java Doc) public static CharSequence trimWhitespace(CharSequence in)(Code)(Java Doc) final public Expression typeCheck(StaticContext env, ItemType contextItemType)(Code)(Java Doc)
|
|
|