public static class UserFunctionReference.BoundUserFunction extends AbstractFunction
| Constructor and Description |
|---|
BoundUserFunction(ExportAgent agent,
Function function,
Component component,
Controller controller) |
| Modifier and Type | Method and Description |
|---|---|
Sequence |
call(XPathContext context,
Sequence[] args)
Invoke the function
|
void |
export(ExpressionPresenter out)
Output information about this function item to the diagnostic explain() output
|
AnnotationList |
getAnnotations()
Get the function annotations (as defined in XQuery).
|
int |
getArity()
Get the arity of the function
|
Controller |
getController() |
java.lang.String |
getDescription()
Get a description of this function for use in error messages.
|
FunctionItemType |
getFunctionItemType()
Get the item type of the function item
|
StructuredQName |
getFunctionName()
Get the name of the function, or null if it is anonymous
|
Function |
getTargetFunction() |
XPathContext |
makeNewContext(XPathContext oldContext)
Prepare an XPathContext object for evaluating the function
|
atomize, deepEquals, effectiveBooleanValue, getOperandRoles, getStringValue, getStringValueCS, isArray, isMap, isTrustedResultType, simplify, typeCheckgetLength, head, isStreamed, itemAt, iterate, reduce, subsequenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, head, itemAt, reduce, subsequencepublic BoundUserFunction(ExportAgent agent, Function function, Component component, Controller controller)
public Function getTargetFunction()
public Controller getController()
public XPathContext makeNewContext(XPathContext oldContext)
AbstractFunctionmakeNewContext in interface FunctionmakeNewContext in class AbstractFunctionoldContext - the XPathContext of the function calling expressionpublic Sequence call(XPathContext context, Sequence[] args) throws XPathException
Functioncontext - the XPath dynamic evaluation contextargs - the actual arguments to be suppliedXPathException - if a dynamic error occurs within the functionpublic FunctionItemType getFunctionItemType()
Functionpublic AnnotationList getAnnotations()
FunctiongetAnnotations in interface FunctiongetAnnotations in class AbstractFunctionpublic StructuredQName getFunctionName()
Functionpublic int getArity()
Functionpublic java.lang.String getDescription()
Functionpublic void export(ExpressionPresenter out) throws XPathException
AbstractFunctionexport in interface Functionexport in class AbstractFunctionXPathExceptionCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.