public class Number_1 extends ScalarSystemFunction
ZERO_LENGTH_STRING| Constructor and Description |
|---|
Number_1() |
| Modifier and Type | Method and Description |
|---|---|
static DoubleValue |
convert(AtomicValue value,
Configuration config)
Static method to perform the same conversion as the number() function.
|
AtomicValue |
evaluate(Item arg,
XPathContext context)
Abstract method that must be supplied in subclasses to perform the evaluation
|
ExpressionCompiler |
getExpressionCompiler()
Return the compiler of the NumberFn expression
|
ZeroOrOne<NumericValue> |
resultWhenEmpty()
Method that may be supplied in subclasses, to indicate the result that is returned
when an empty sequence is supplied as the argument value.
|
static DoubleValue |
toNumber(AtomicValue arg0)
The actual implementation logic
|
Expression |
typeCheckCaller(FunctionCall caller,
ExpressionVisitor visitor,
ContextItemStaticInfo contextInfo)
Type-check a calling expression.
|
call, makeFunctionCallequals, export, exportAttributes, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamingAdjunct, importAttributes, makeCall, makeFunction, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformationatomize, deepEquals, effectiveBooleanValue, getStringValue, getStringValueCS, isArray, isMap, optimize, simplify, typeCheckgetLength, head, itemAt, iterate, reduce, subsequenceclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, head, itemAt, reduce, subsequencepublic AtomicValue evaluate(Item arg, XPathContext context) throws XPathException
ScalarSystemFunctionevaluate in class ScalarSystemFunctionarg - the supplied argumentcontext - the dynamic contextXPathException - if a dynamic error occurspublic ZeroOrOne<NumericValue> resultWhenEmpty()
ScalarSystemFunctionresultWhenEmpty in class ScalarSystemFunctionpublic Expression typeCheckCaller(FunctionCall caller, ExpressionVisitor visitor, ContextItemStaticInfo contextInfo)
typeCheckCaller in class SystemFunctionpublic static DoubleValue toNumber(AtomicValue arg0) throws XPathException
arg0 - the atomic value to be convertedXPathExceptionpublic static DoubleValue convert(AtomicValue value, Configuration config)
value - the value to be convertedconfig - the Saxon configurationpublic ExpressionCompiler getExpressionCompiler()
getExpressionCompiler in class SystemFunctionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.