public class ConstantFunction extends SystemFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
ConstantFunction.False |
static class |
ConstantFunction.True |
| Modifier and Type | Field and Description |
|---|---|
GroundedValue<?> |
value |
| Constructor and Description |
|---|
ConstantFunction(GroundedValue<?> value) |
| Modifier and Type | Method and Description |
|---|---|
Sequence<?> |
call(XPathContext context,
Sequence[] arguments)
Invoke the function
|
IntegerValue[] |
getIntegerBounds()
For a function that returns an integer or a sequence of integers, get
a lower and upper bound on the values of the integers that may be returned, from
static analysis.
|
Expression |
makeFunctionCall(Expression[] arguments)
Make an expression that either calls this function, or that is equivalent to a call
on this function
|
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getCompilerName, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamerName, importAttributes, isTrustedResultType, makeCall, makeFunction, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCalleratomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheckclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitargumentArray, getGenregetLength, head, isStreamed, itemAt, iterate, iterator, reduce, subsequence, toGroundedValueasIterable, materializemakeRepeatablepublic GroundedValue<?> value
public ConstantFunction(GroundedValue<?> value)
public Sequence<?> call(XPathContext context, Sequence[] arguments) throws XPathException
Functioncontext - the XPath dynamic evaluation contextarguments - the actual arguments to be suppliedXPathException - if a dynamic error occurs within the functionpublic Expression makeFunctionCall(Expression[] arguments)
SystemFunctionmakeFunctionCall in class SystemFunctionarguments - the supplied arguments to the function callpublic IntegerValue[] getIntegerBounds()
SystemFunctiongetIntegerBounds in class SystemFunctionCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.