| java.lang.Object net.sf.saxon.expr.ComputedExpression net.sf.saxon.expr.UnaryExpression net.sf.saxon.expr.NumericPromoter
NumericPromoter | final public class NumericPromoter extends UnaryExpression implements MappingFunction(Code) | | A NumericPromoter performs numeric promotion on each item in a supplied sequence
|
Constructor Summary | |
public | NumericPromoter(Expression sequence, int requiredType) Constructor
Parameters: sequence - this must be a sequence of atomic values. |
NumericPromoter | public NumericPromoter(Expression sequence, int requiredType)(Code) | | Constructor
Parameters: sequence - this must be a sequence of atomic values. This is not checked; a ClassCastExceptionwill occur if the precondition is not satisfied. Parameters: requiredType - the item type to which all items in the sequence should be converted,using the rules for "cast as". |
displayOperator | protected String displayOperator(NamePool pool)(Code) | | Give a string representation of the operator for use in diagnostics
the operator, as a string |
equals | public boolean equals(Object other)(Code) | | Is this expression the same as another expression?
|
evaluateItem | public Item evaluateItem(XPathContext context) throws XPathException(Code) | | Evaluate as an Item. This should only be called if the expression has cardinality zero-or-one
|
getItemType | public ItemType getItemType(TypeHierarchy th)(Code) | | Determine the data type of the items returned by the expression, if possible
a value such as Type.STRING, Type.BOOLEAN, Type.NUMBER, Type.NODE,or Type.ITEM (meaning not known in advance) Parameters: th - |
|
|