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
|
java.lang.String |
getCompilerName()
Get the (local) name of a class that can be used to generate bytecode for this
system function
|
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, makeFunctionCall
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamerName, importAttributes, isTrustedResultType, makeCall, makeFunction, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheck
getLength, head, isStreamed, itemAt, iterate, reduce, subsequence
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLength, head, itemAt, reduce, subsequence
public AtomicValue evaluate(Item arg, XPathContext context) throws XPathException
ScalarSystemFunction
evaluate
in class ScalarSystemFunction
arg
- the supplied argumentcontext
- the dynamic contextXPathException
- if a dynamic error occurspublic ZeroOrOne<NumericValue> resultWhenEmpty()
ScalarSystemFunction
resultWhenEmpty
in class ScalarSystemFunction
public Expression typeCheckCaller(FunctionCall caller, ExpressionVisitor visitor, ContextItemStaticInfo contextInfo)
typeCheckCaller
in class SystemFunction
public static DoubleValue toNumber(AtomicValue arg0) throws XPathException
arg0
- the atomic value to be convertedXPathException
public static DoubleValue convert(AtomicValue value, Configuration config)
value
- the value to be convertedconfig
- the Saxon configurationpublic java.lang.String getCompilerName()
SystemFunction
getCompilerName
in class SystemFunction
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.