net.sf.saxon.expr
public class PromoteToFloat extends NumericPromoter
Constructor Summary | |
---|---|
PromoteToFloat(Expression exp) |
Method Summary | |
---|---|
Expression | copy()
Copy an expression. |
ItemType | getItemType(TypeHierarchy th)
Determine the data type of the items returned by the expression, if possible |
protected AtomicValue | promote(AtomicValue value, XPathContext context)
Perform the promotion |
Returns: the copy of the original expression
Parameters: th the type hierarchy cache
Returns: a value such as Type.STRING, Type.BOOLEAN, Type.NUMBER, Type.NODE, or Type.ITEM (meaning not known in advance)
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