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, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheck
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
argumentArray, getGenre
getLength, head, isStreamed, itemAt, iterate, iterator, reduce, subsequence, toGroundedValue
asIterable, materialize
makeRepeatable
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 java.lang.String getCompilerName()
SystemFunction
getCompilerName
in class SystemFunction
public java.lang.String getStreamerName()
SystemFunction
getStreamerName
in class SystemFunction
StreamerMap
. In non-streaming Saxon editions
(HE and PE) the method always returns null.Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.