public class ApplyFn extends SystemFunction
Constructor and Description |
---|
ApplyFn() |
Modifier and Type | Method and Description |
---|---|
Sequence |
call(XPathContext context,
Sequence[] arguments)
Evaluate the expression
|
void |
exportAttributes(ExpressionPresenter out)
Export any context attributes held within the SystemFunction object.
|
ItemType |
getResultItemType(Expression[] args)
Get the return type, given knowledge of the actual arguments
|
void |
importAttributes(Properties attributes)
Import any attributes found in the export file, that is, any attributes output using
the exportAttributes method
|
boolean |
isDynamicFunctionCall()
Ask whether this call to fn:apply was originally written as a dynamic function call
|
void |
setDynamicFunctionCall(String fnExpr)
Say that this call to fn:apply was originally written as a dynamic function call
|
equals, export, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getExpressionCompiler, getFunctionItemType, getFunctionName, getIntegerBounds, getOperandRoles, getRequiredType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamingAdjunct, makeCall, makeFunction, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, 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 setDynamicFunctionCall(String fnExpr)
fnExpr
- string representation of the expression used as the dynamic callpublic boolean isDynamicFunctionCall()
public ItemType getResultItemType(Expression[] args)
getResultItemType
in class SystemFunction
args
- the actual arguments suppliedpublic Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
context
- the dynamic evaluation contextarguments
- the values of the arguments. The first argument is the function item
to be called; the second argument is an array containing
the arguments to be passed to that function, before conversion.XPathException
- if a dynamic error occurs during the evaluation of the expressionpublic void exportAttributes(ExpressionPresenter out)
SystemFunction
exportAttributes
in class SystemFunction
out
- the export destinationpublic void importAttributes(Properties attributes) throws XPathException
importAttributes
in class SystemFunction
attributes
- the attributes, as a properties objectXPathException
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.