|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.value.Value com.saxonica.deploy.ItemClosure
public class ItemClosure
An ItemClosure represents a singleton value that has not yet been evaluated: the value is represented by an EvaluableItem object which performs the evaluation. Once this has been called the first time, the actual item value is stored in the ItemClosure for use on subsequent occasions.
This class is currently used only by the Saxon-EE Java code-generator.
Field Summary |
---|
Fields inherited from class net.sf.saxon.value.Value |
---|
INDETERMINATE_ORDERING |
Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
---|
EMPTY_VALUE_ARRAY |
Constructor Summary | |
---|---|
protected |
ItemClosure()
|
|
ItemClosure(EvaluableItem evaluator,
XPathContext context,
int primitiveType)
Create an ItemClosure |
Method Summary | |
---|---|
Item |
asItem()
Evaluate as a singleton item (or empty sequence). |
int |
getCardinality()
Get the cardinality. |
ItemType |
getItemType(TypeHierarchy th)
Get the static item type |
int |
getLength()
Get the length of the value. |
Comparable |
getSchemaComparable()
Get a Comparable value that implements the XML Schema ordering comparison semantics for this value. |
Item |
itemAt(int n)
Get the n'th item in the sequence (starting from 0). |
SequenceIterator |
iterate()
Evaluate the expression in a given context to return an iterator over a sequence |
Value |
reduce()
Reduce a value to its simplest form. |
Methods inherited from class net.sf.saxon.value.Value |
---|
asItem, asIterator, asValue, checkPermittedContents, convertToJava, effectiveBooleanValue, equals, fromItem, getCanonicalLexicalRepresentation, getIterator, getStringValue, getStringValueCS, hashCode, isIdentical, iterate, process |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ItemClosure()
public ItemClosure(EvaluableItem evaluator, XPathContext context, int primitiveType)
evaluator
- used to do deferred evaluation of the itemcontext
- XPath dynamic context for evaluating the itemprimitiveType
- the expected primitive type of the resultMethod Detail |
---|
public ItemType getItemType(TypeHierarchy th)
getItemType
in class Value
th
- the type hierarchy cache
public int getCardinality()
StaticProperty.ALLOWS_ZERO_OR_MORE
getCardinality
in class Value
public Item asItem() throws XPathException
asItem
in class Value
XPathException
public Item itemAt(int n) throws XPathException
itemAt
in class Value
n
- position of the required item, counting from zero.
XPathException
public SequenceIterator iterate() throws XPathException
iterate
in class Value
XPathException
- if a dynamic error occurs. This is possible only in the case of values
that are materialized lazily, that is, where the iterate() method leads to computation of an
expression that delivers the values.public Value reduce() throws XPathException
reduce
in class Value
XPathException
public int getLength() throws XPathException
getLength
in class Value
XPathException
public Comparable getSchemaComparable()
In the case of data types that are partially ordered, the returned Comparable extends the standard
semantics of the compareTo() method by returning the value Value.INDETERMINATE_ORDERING
when there
is no defined order relationship between two given values.
getSchemaComparable
in class Value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |