Package org.basex.query.func
Interface AFunction
- All Known Implementing Classes:
Function
public interface AFunction
Interface for built-in functions.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns a string representation of the function with the specified arguments (seeFuncDefinition).default StringReturns the class name of a function implementation.Returns the function definition.default StandardFuncget(StaticContext sc, InputInfo ii, Expr... args) Creates a new instance of the function.default booleanChecks if the specified expression is an instance of this function.
-
Method Details
-
definition
FuncDefinition definition()Returns the function definition.- Returns:
- definition
-
get
Creates a new instance of the function.- Parameters:
sc- static contextii- input infoargs- function arguments- Returns:
- function
-
is
Checks if the specified expression is an instance of this function.- Parameters:
ex- expression- Returns:
- result of check
-
args
Returns a string representation of the function with the specified arguments (seeFuncDefinition).- Parameters:
args- arguments- Returns:
- string representation with leading space (simplifies nesting of returned string)
-
className
Returns the class name of a function implementation. Only called by tests.- Returns:
- class name
-