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
|
equals, export, exportAttributes, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getExpressionCompiler, getFunctionItemType, getFunctionName, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamingAdjunct, importAttributes, makeCall, makeFunction, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, typeCheckCalleratomize, 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 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-2014 Saxonica Limited. All rights reserved.