public class StringJoin extends FoldingFunction implements PushableFunction
Constructor and Description |
---|
StringJoin() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Determine whether two expressions are equivalent
|
int |
getCardinality(Expression[] arguments)
Determine the cardinality of the function.
|
java.lang.String |
getCompilerName()
Get the (local) name of a class that can be used to generate bytecode for this
system function
|
Fold |
getFold(XPathContext context,
Sequence... additionalArguments)
Create the Fold object which actually performs the evaluation.
|
boolean |
isReturnEmptyIfEmpty() |
Expression |
makeOptimizedFunctionCall(ExpressionVisitor visitor,
ContextItemStaticInfo contextInfo,
Expression... arguments)
Allow the function to create an optimized call based on the values of the actual arguments
|
void |
process(Outputter destination,
XPathContext context,
Sequence[] arguments)
Evaluate the function in "push" mode
|
void |
setReturnEmptyIfEmpty(boolean option)
Indicate that when the input sequence (first argument) is empty, the function should return
an empty sequence rather than an empty string
|
call, getStreamerName
dependsOnContextItem, dynamicCall, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, importAttributes, isTrustedResultType, makeCall, makeFunction, makeFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, 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, reduce, subsequence, toGroundedValue
asIterable, concatenate, containsNode, materialize
makeRepeatable
public void setReturnEmptyIfEmpty(boolean option)
option
- true if an empty sequence should be returned when the input is an empty sequence.public boolean isReturnEmptyIfEmpty()
public int getCardinality(Expression[] arguments)
getCardinality
in class SystemFunction
arguments
- the actual arguments suppliedpublic boolean equals(java.lang.Object o)
equals
in class SystemFunction
public Expression makeOptimizedFunctionCall(ExpressionVisitor visitor, ContextItemStaticInfo contextInfo, Expression... arguments) throws XPathException
makeOptimizedFunctionCall
in class SystemFunction
visitor
- the expression visitorcontextInfo
- information about the context itemarguments
- the supplied arguments to the function callXPathException
- if an error is detectedpublic Fold getFold(XPathContext context, Sequence... additionalArguments) throws XPathException
FoldingFunction
getFold
in class FoldingFunction
context
- the dynamic evaluation contextadditionalArguments
- the values of all arguments other than the first.XPathException
- if a dynamic error occurspublic void process(Outputter destination, XPathContext context, Sequence[] arguments) throws XPathException
PushableFunction
process
in interface PushableFunction
destination
- the destination for the function resultcontext
- the dynamic evaluation contextarguments
- the supplied arguments to the functionXPathException
- if a dynamic error occurs during the evaluationpublic java.lang.String getCompilerName()
SystemFunction
getCompilerName
in class SystemFunction
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.