public final class ShareableSequence extends Value
EMPTY_CLASS_ARRAYEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHODEMPTY_VALUE_ARRAY| Constructor and Description |
|---|
ShareableSequence(java.util.List list)
Construct an sequence from an array of items.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
java.util.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
|
asItem, asIterator, asValue, checkPermittedContents, convert, convertJavaObjectToXPath, convertToJava, display, equals, evaluateAsString, evaluateItem, getDependencies, getIterator, getParentExpression, getSpecialProperties, getStringValue, getStringValueCS, hashCode, iterateSubExpressions, makeQNameValue, optimize, process, promote, simplify, stringToNumber, toString, typeCheckpublic ShareableSequence(java.util.List list)
list - the list of items to be included in the sequencepublic boolean isShareable()
public java.util.List getList()
public int getImplementationMethod()
public Value simplify()
public Value reduce()
public int getLength()
public int getCardinality()
getCardinality in interface ExpressiongetCardinality in class ValueCardinalitypublic ItemType getItemType(TypeHierarchy th)
getItemType in interface ExpressiongetItemType in class Valueth - public Item itemAt(int n)
public SequenceIterator iterate(XPathContext context)
context - dynamic evaluation context; not used in this
implementation of the methodpublic boolean effectiveBooleanValue(XPathContext context) throws XPathException
effectiveBooleanValue in interface ExpressioneffectiveBooleanValue in class Valuecontext - The context in which the expression is to be evaluatedXPathException - if any dynamic error occurs evaluating the
expression