public static class UserFunctionReference.BoundUserFunction extends AbstractFunction implements ContextOriginator
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,
ContextOriginator originator)
Prepare an XPathContext object for evaluating the function
|
atomize, deepEquals, effectiveBooleanValue, getOperandRoles, getStringValue, getStringValueCS, isArray, isMap, isTrustedResultType, simplify, typeCheck
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
argumentArray, getGenre, toShortString
getLength, head, isStreamed, itemAt, iterate, iterator, reduce, subsequence, toGroundedValue
asIterable, materialize
makeRepeatable
public BoundUserFunction(ExportAgent agent, Function function, Component component, Controller controller)
public Function getTargetFunction()
public Controller getController()
public XPathContext makeNewContext(XPathContext oldContext, ContextOriginator originator)
AbstractFunction
makeNewContext
in interface Function
makeNewContext
in class AbstractFunction
oldContext
- the XPathContext of the function calling expressionoriginator
- identifies the location of the caller for diagnosticspublic Sequence<?> call(XPathContext context, Sequence[] args) throws XPathException
Function
call
in interface Callable
call
in interface Function
context
- the XPath dynamic evaluation contextargs
- the actual arguments to be suppliedXPathException
- if a dynamic error occurs within the functionpublic FunctionItemType getFunctionItemType()
Function
getFunctionItemType
in interface Function
public AnnotationList getAnnotations()
Function
getAnnotations
in interface Function
getAnnotations
in class AbstractFunction
public StructuredQName getFunctionName()
Function
getFunctionName
in interface Function
public int getArity()
Function
public java.lang.String getDescription()
Function
getDescription
in interface Function
public void export(ExpressionPresenter out) throws XPathException
AbstractFunction
export
in interface Function
export
in class AbstractFunction
XPathException
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.