Package org.basex.query.func
Interface XQFunction
- All Superinterfaces:
XQFunctionExpr
Interface for XQuery functions.
- Author:
- BaseX Team 2005-21, BSD License, Leo Woerteler
-
Method Summary
Modifier and TypeMethodDescriptiondefault Valueinvoke(QueryContext qc, InputInfo ii, Value... args) Calls the function with the given arguments and takes care of tail calls.invokeInternal(QueryContext qc, InputInfo ii, Value[] args) Internally invokes this function with the given arguments.default ValueinvokeTail(QueryContext qc, InputInfo ii, Value... args) Tail-calls the given function with the given arguments.intSize of this function's stack frame.Methods inherited from interface org.basex.query.func.XQFunctionExpr
annotations, arity, funcName, funcType, inline, paramName, vacuousBody
-
Method Details
-
invoke
Calls the function with the given arguments and takes care of tail calls. Must not be overwritten.- Parameters:
qc- query contextii- input infoargs- arguments for the call- Returns:
- result of the function call
- Throws:
QueryException- query exception
-
invokeTail
Tail-calls the given function with the given arguments. Must not be overwritten.- Parameters:
qc- query contextii- input infoargs- arguments for the call- Returns:
- result of the function call
- Throws:
QueryException- query exception
-
invokeInternal
Internally invokes this function with the given arguments.- Parameters:
qc- query contextii- input infoargs- arguments- Returns:
- resulting value
- Throws:
QueryException- query exception
-
stackFrameSize
int stackFrameSize()Size of this function's stack frame.- Returns:
- stack frame size
-