public class BooleanFn extends SystemFunction
| Constructor and Description |
|---|
BooleanFn() |
| Modifier and Type | Method and Description |
|---|---|
BooleanValue |
call(XPathContext c,
Sequence[] arguments)
Invoke the function
|
ExpressionCompiler |
getExpressionCompiler()
Return the compiler of the BooleanFn expression
|
BooleanFnAdjunct |
getStreamingAdjunct()
Get a class that supports streamed evaluation of this expression
|
Expression |
makeFunctionCall(Expression[] arguments)
Make an expression that either calls this function, or that is equivalent to a call
on this function
|
static Expression |
rewriteEffectiveBooleanValue(Expression exp,
ExpressionVisitor visitor,
ContextItemStaticInfo contextItemType)
Optimize an expression whose effective boolean value is required.
|
void |
supplyTypeInformation(ExpressionVisitor visitor,
ContextItemStaticInfo contextItemType,
Expression[] arguments)
Method called during static type checking.
|
equals, export, exportAttributes, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, importAttributes, makeCall, makeFunction, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, 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 void supplyTypeInformation(ExpressionVisitor visitor, ContextItemStaticInfo contextItemType, Expression[] arguments) throws XPathException
SystemFunctionsupplyTypeInformation in class SystemFunctionvisitor - an expression visitor, providing access to the static context and configurationcontextItemType - information about whether the context item is set, and what its type isarguments - the expressions appearing as arguments in the function callXPathExceptionpublic static Expression rewriteEffectiveBooleanValue(Expression exp, ExpressionVisitor visitor, ContextItemStaticInfo contextItemType) throws XPathException
exp - the expression whose EBV is to be evaluatedvisitor - an expression visitorcontextItemType - the type of the context item for this expressionXPathException - if static errors are foundpublic BooleanValue call(XPathContext c, Sequence[] arguments) throws XPathException
Functionc - 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 ExpressionCompiler getExpressionCompiler()
getExpressionCompiler in class SystemFunctionpublic BooleanFnAdjunct getStreamingAdjunct()
getStreamingAdjunct in class SystemFunctionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.