Package org.basex.query.func
Interface XQFunctionExpr
- All Known Subinterfaces:
XQFunction
public interface XQFunctionExpr
Interface for possibly non-compiled XQuery functions.
- Author:
- BaseX Team 2005-21, BSD License, Leo Woerteler
-
Method Summary
Modifier and TypeMethodDescriptionAnnotations of this function.intarity()Number of arguments this function takes.funcName()Name of this function,nullmeans anonymous function.funcType()Type of this function.inline(Expr[] exprs, CompileContext cc) Tries to inline this function with the given arguments.paramName(int pos) Name of the parameter at the given position.booleanChecks if this function returns vacuous results (seeExpr.vacuous()).
-
Method Details
-
arity
int arity()Number of arguments this function takes.- Returns:
- function arity
-
funcName
QNm funcName()Name of this function,nullmeans anonymous function.- Returns:
- name or
null
-
paramName
Name of the parameter at the given position.- Parameters:
pos- position of the parameter- Returns:
- name of the parameter
-
funcType
FuncType funcType()Type of this function.- Returns:
- this function's type
-
annotations
AnnList annotations()Annotations of this function.- Returns:
- this function's annotations
-
inline
Tries to inline this function with the given arguments.- Parameters:
exprs- argumentscc- compilation context- Returns:
- the expression to inline if successful,
nullotherwise - Throws:
QueryException- query exception
-
vacuousBody
boolean vacuousBody()Checks if this function returns vacuous results (seeExpr.vacuous()).- Returns:
- result of check
-