net.sf.saxon.expr
public final class NumericPromoter extends UnaryExpression implements MappingFunction
| Constructor Summary | |
|---|---|
| NumericPromoter(Expression sequence, int requiredType)
Constructor | |
| Method Summary | |
|---|---|
| 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 | optimize(Optimizer opt, StaticContext env, ItemType contextItemType)
Optimize the expression |
| 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. requiredType the item type to which all items in the sequence should be converted, using the rules for "cast as".
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)