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, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getStringValue, getStringValueCS, isArray, isMap, optimize, simplify, typeCheck
getLength, head, itemAt, iterate, reduce, subsequence
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLength, head, itemAt, reduce, subsequence
public GroundedValue value
public ConstantFunction(GroundedValue value)
public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
Function
context
- the XPath dynamic evaluation contextarguments
- the actual arguments to be suppliedXPathException
- if a dynamic error occurs within the functionpublic Expression makeFunctionCall(Expression[] arguments)
SystemFunction
makeFunctionCall
in class SystemFunction
arguments
- the supplied arguments to the function callpublic IntegerValue[] getIntegerBounds()
SystemFunction
getIntegerBounds
in class SystemFunction
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.