net.sf.saxon.expr
public final class AtomicSequenceConverter extends UnaryExpression implements MappingExpression
Constructor Summary | |
---|---|
AtomicSequenceConverter(Expression sequence, AtomicType requiredItemType)
Constructor |
Method Summary | |
---|---|
int | computeCardinality()
Determine the static cardinality of the expression |
int | computeSpecialProperties()
Determine the special properties of this expression |
Expression | copy()
Copy an expression. |
boolean | equals(Object other)
Is this expression the same as another expression? |
Item | evaluateItem(XPathContext context)
Evaluate as an Item. |
void | explain(ExpressionPresenter destination)
Diagnostic print of expression structure. |
ItemType | getItemType(TypeHierarchy th)
Determine the data type of the items returned by the expression, if possible |
SequenceIterator | getMappingIterator(SequenceIterator base, XPathContext context) |
AtomicType | getRequiredPrimitiveType()
Get the required (target) primitive type |
SequenceIterator | iterate(XPathContext context)
Iterate over the sequence of values |
Expression | simplify(ExpressionVisitor visitor)
Simplify an expression |
Expression | typeCheck(ExpressionVisitor visitor, ItemType contextItemType)
Type-check the expression |
Parameters: sequence this must be a sequence of atomic values. This is not checked; a ClassCastException will occur if the precondition is not satisfied. requiredItemType the item type to which all items in the sequence should be converted, using the rules for "cast as".
Returns: NON_CREATIVE.
Returns: the copy of the original expression
Parameters: th the type hierarchy cache
Returns: a value such as Type.STRING, Type.BOOLEAN, Type.NUMBER, Type.NODE, or Type.ITEM (meaning not known in advance)
Returns: the required primitive type
Parameters: visitor an expression visitor