net.sf.saxon.expr
Class UntypedAtomicConverter
- EvaluableItem, InstructionInfoProvider, SequenceIterable, Serializable, SourceLocator
public final class UntypedAtomicConverter
An UntypedAtomicConverter is an expression that converts any untypedAtomic items in
a sequence to a specified type
computeCardinality , computeSpecialProperties , displayExpressionName , displayOperator , equals , explain , getBaseExpression , getItemType , hashCode , iterateSubExpressions , optimize , promote , replaceSubExpression , simplify , toString , typeCheck |
addToPathMap , adoptChildExpression , checkPermittedContents , computeCardinality , computeDependencies , computeSpecialProperties , computeStaticProperties , copy , display , doPromotion , dynamicError , effectiveBooleanValue , evaluateAsString , evaluateItem , explain , explain , findParentOf , getCardinality , getColumnNumber , getConstructType , getContainer , getDependencies , getExecutable , getHostLanguage , getImplementationMethod , getInstructionInfo , getIntrinsicDependencies , getItemType , getLineNumber , getLocationId , getLocationProvider , getPublicId , getSlotsUsed , getSpecialProperties , getSystemId , hasLoopingSubexpression , implementsStaticTypeCheck , iterate , iterateEvents , iterateSubExpressions , markTailFunctionCalls , optimize , process , promote , replaceSubExpression , resetLocalStaticProperties , setContainer , setFiltered , setFlattened , setLocationId , simplify , staticTypeCheck , suppressValidation , toString , typeCheck , typeError |
UntypedAtomicConverter
public UntypedAtomicConverter(Expression sequence,
AtomicType requiredItemType,
boolean allConverted)
Constructor
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
areAllItemsConverted
public boolean areAllItemsConverted()
Determine whether all items are to be converted, or only the subset that are untypedAtomic
- true if all items are to be converted
copy
public Expression copy()
Copy an expression. This makes a deep copy.
- copy in interface Expression
- the copy of the original expression
explain
public void explain(ExpressionPresenter out)
Diagnostic print of expression structure. The abstract expression tree
is written to the supplied output destination.
- explain in interface UnaryExpression
getRequiredItemType
public ItemType getRequiredItemType()
Get the item type to which untyped atomic items must be converted