net.sf.saxon.expr
public final class UntypedAtomicConverter extends UnaryExpression implements MappingExpression
Constructor Summary | |
---|---|
UntypedAtomicConverter(Expression sequence, AtomicType requiredItemType, boolean allConverted, RoleLocator role)
Constructor
|
Method Summary | |
---|---|
boolean | areAllItemsConverted()
Determine whether all items are to be converted, or only the subset that are untypedAtomic |
int | computeCardinality() |
int | computeSpecialProperties()
Determine the special properties of this expression
|
Expression | copy()
Copy an expression. |
protected String | displayOperator(Configuration config) |
Item | evaluateItem(XPathContext context)
Evaluate as an Item. |
void | explain(ExpressionPresenter out)
Diagnostic print of expression structure. |
ItemType | getItemType(TypeHierarchy th)
Determine the data type of the items returned by the expression
|
SequenceIterator | getMappingIterator(SequenceIterator base, XPathContext context) |
ItemType | getRequiredItemType()
Get the item type to which untyped atomic items must be converted |
SequenceIterator | iterate(XPathContext context)
Iterate over the sequence of values |
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 untypedAtomic items in the sequence should be converted, using the rules for "cast as". allConverted true if the result of this expression is a sequence in which all items belong to the required type role Diagnostic information for use if conversion fails
Returns: true if all items are to be converted
Returns: NON_CREATIVE.
Returns: the copy of the original expression
Parameters: th the type hierarchy cache
Returns: the required item type