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, 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 void supplyTypeInformation(ExpressionVisitor visitor, ContextItemStaticInfo contextItemType, Expression[] arguments) throws XPathException
SystemFunction
supplyTypeInformation
in class SystemFunction
visitor
- 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 callXPathException
public 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
Function
c
- 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 ExpressionCompiler getExpressionCompiler()
getExpressionCompiler
in class SystemFunction
public BooleanFnAdjunct getStreamingAdjunct()
getStreamingAdjunct
in class SystemFunction
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.