public class BooleanFn extends SystemFunction
| Constructor and Description |
|---|
BooleanFn() |
| Modifier and Type | Method and Description |
|---|---|
BooleanValue |
call(XPathContext c,
Sequence[] arguments)
Invoke the function
|
java.lang.String |
getCompilerName()
Get the (local) name of a class that can be used to generate bytecode for this
system function
|
java.lang.String |
getStreamerName()
Get a name that identifies the class that can be used to evaluate this function
in streaming mode, that is, supplying one item or event at a time as it is
delivered by the parser.
|
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.
|
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, importAttributes, isTrustedResultType, makeCall, makeFunction, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, 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 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 java.lang.String getCompilerName()
SystemFunctiongetCompilerName in class SystemFunctionpublic java.lang.String getStreamerName()
SystemFunctiongetStreamerName in class SystemFunctionStreamerMap. In non-streaming Saxon editions
(HE and PE) the method always returns null.Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.