net.sf.saxon.expr
Class PromoteToFloat
java.lang.Object
net.sf.saxon.expr.Expression
net.sf.saxon.expr.UnaryExpression
net.sf.saxon.expr.NumericPromoter
net.sf.saxon.expr.PromoteToFloat
- All Implemented Interfaces:
- Serializable, SourceLocator, LocationProvider, SaxonLocator, EvaluableItem, SequenceIterable, InstructionInfo, Locator
public class PromoteToFloat
- extends NumericPromoter
Expression that performs numeric promotion to xs:double
- See Also:
- Serialized Form
Methods inherited from class net.sf.saxon.expr.Expression |
addToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getColumnNumber, getConstructType, getContainer, getDependencies, getEvaluationMethod, getExecutable, getExpressionName, getHostLanguage, getImplementationMethod, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterateEvents, iterateSameFocusSubExpressions, markTailFunctionCalls, process, resetLocalStaticProperties, setContainer, setEvaluationMethod, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, typeError |
PromoteToFloat
public PromoteToFloat(Expression exp)
getItemType
public ItemType getItemType(TypeHierarchy th)
- Determine the data type of the items returned by the expression, if possible
- Overrides:
getItemType
in class UnaryExpression
- 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)
copy
public Expression copy()
- Copy an expression. This makes a deep copy.
- Specified by:
copy
in class Expression
- Returns:
- the copy of the original expression
promote
protected AtomicValue promote(AtomicValue value,
ConversionRules rules)
throws XPathException
- Perform the promotion
- Specified by:
promote
in class NumericPromoter
- Parameters:
value
- the numeric or untyped atomic value to be promotedrules
-
- Returns:
- the value that results from the promotion
- Throws:
XPathException
Copyright (c) 2004-2010 Saxonica Limited. All rights reserved.