net.sf.saxon.expr
Class AtomicSequenceConverter
- EvaluableItem, InstructionInfoProvider, SequenceIterable, Serializable, SourceLocator
public final class AtomicSequenceConverter
An AtomicSequenceConverter is an expression that performs a cast on each member of
a supplied sequence
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 |
AtomicSequenceConverter
public AtomicSequenceConverter(Expression sequence,
AtomicType requiredItemType) 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 all items in the sequence should be converted,
using the rules for "cast as".
copy
public Expression copy()
Copy an expression. This makes a deep copy.
- copy in interface Expression
- the copy of the original expression
equals
public boolean equals(Object other)
Is this expression the same as another expression?
- equals in interface UnaryExpression
explain
public void explain(ExpressionPresenter destination)
Diagnostic print of expression structure. The abstract expression tree
is written to the supplied output destination.
- explain in interface UnaryExpression
getItemType
public ItemType getItemType(TypeHierarchy th)
Determine the data type of the items returned by the expression, if possible
- getItemType in interface UnaryExpression
th - the type hierarchy cache
- a value such as Type.STRING, Type.BOOLEAN, Type.NUMBER, Type.NODE,
or Type.ITEM (meaning not known in advance)
getRequiredPrimitiveType
public AtomicType getRequiredPrimitiveType()
Get the required (target) primitive type
- the required primitive type