public class Concat extends SystemFunction implements PushableFunction
Constructor and Description |
---|
Concat() |
Modifier and Type | Method and Description |
---|---|
StringValue |
call(XPathContext context,
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
|
FunctionItemType |
getFunctionItemType()
Get the item type of the function item
|
OperandRole[] |
getOperandRoles()
Get the roles of the arguments, for the purposes of streaming
|
SequenceType |
getRequiredType(int arg)
Get the required type of the nth argument
|
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
|
protected Sequence |
resultIfEmpty(int arg)
Ask if the function always returns a known result when one of the arguments is an empty sequence
|
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionName, getIntegerBounds, getNetCost, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamerName, importAttributes, isTrustedResultType, makeCall, makeFunction, makeFunctionCall, 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
protected Sequence resultIfEmpty(int arg)
SystemFunction
resultIfEmpty
in class SystemFunction
arg
- the argument whose value is an empty sequence (counting from zero)public OperandRole[] getOperandRoles()
getOperandRoles
in interface Function
getOperandRoles
in class SystemFunction
public FunctionItemType getFunctionItemType()
getFunctionItemType
in interface Function
getFunctionItemType
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 call. Note: modifying the contents
of this array should not be attempted, it is likely to have no effect.XPathException
- if an error is detectedpublic StringValue call(XPathContext context, Sequence[] arguments) throws XPathException
Function
call
in interface Callable
call
in interface Function
context
- the XPath dynamic evaluation contextarguments
- the actual arguments to be suppliedXPathException
- if a dynamic error occurs within the functionpublic 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 SequenceType getRequiredType(int arg)
getRequiredType
in class SystemFunction
arg
- the number of the argument whose type is requested, zero-basedpublic java.lang.String getCompilerName()
SystemFunction
getCompilerName
in class SystemFunction
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.