net.sf.saxon.expr
public final class AtomicSequenceConverter extends UnaryExpression implements MappingFunction
| 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 |
| protected String | displayOperator(NamePool pool)
Give a string representation of the operator for use in diagnostics |
| boolean | equals(Object other)
Is this expression the same as another expression? |
| Item | evaluateItem(XPathContext context)
Evaluate as an Item. |
| ItemType | getItemType(TypeHierarchy th)
Determine the data type of the items returned by the expression, if possible |
| SequenceIterator | iterate(XPathContext context)
Iterate over the sequence of values |
| Object | map(Item item, XPathContext context)
Implement the mapping function |
| Expression | simplify(StaticContext env)
Simplify an expression |
| Expression | typeCheck(StaticContext env, 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 operator, as a string
Parameters: th
Returns: a value such as Type.STRING, Type.BOOLEAN, Type.NUMBER, Type.NODE, or Type.ITEM (meaning not known in advance)