net.sf.saxon.expr
public abstract class NumericPromoter extends UnaryExpression
| Constructor Summary | |
|---|---|
| NumericPromoter(Expression exp) | |
| Method Summary | |
|---|---|
| Item | evaluateItem(XPathContext context)
Evaluate as an Item. |
| void | explain(ExpressionPresenter out)
Diagnostic print of expression structure. |
| SequenceIterator | iterate(XPathContext context)
Iterate over the sequence of values |
| Expression | optimize(ExpressionVisitor visitor, ItemType contextItemType)
Optimize the expression |
| protected abstract AtomicValue | promote(AtomicValue value, XPathContext context)
Perform the promotion |
| Expression | simplify(ExpressionVisitor visitor)
Simplify an expression |
| Expression | typeCheck(ExpressionVisitor visitor, ItemType contextItemType)
Type-check the expression |
Parameters: value the numeric or untyped atomic value to be promoted context the XPath dynamic evaluation context
Returns: the value that results from the promotion
Parameters: visitor an expression visitor