public final class Functions extends TokenSet
| Modifier and Type | Method and Description |
|---|---|
void |
error(QNm name,
InputInfo ii)
Throws an error if one of the pre-defined functions is similar to the
specified function name.
|
static Functions |
get()
Returns the singleton instance.
|
StandardFunc |
get(byte[] name,
byte[] uri,
Expr[] args,
QueryContext ctx,
InputInfo ii)
Returns the specified function.
|
static TypedFunc |
get(QNm name,
Expr[] args,
boolean dyn,
QueryContext ctx,
InputInfo ii)
Returns an instance of the specified function, or
null. |
static FItem |
get(QNm name,
long arity,
boolean dyn,
QueryContext ctx,
InputInfo ii)
Returns the specified function literal.
|
protected void |
rehash()
Resizes the hash table.
|
public static Functions get()
public StandardFunc get(byte[] name, byte[] uri, Expr[] args, QueryContext ctx, InputInfo ii) throws QueryException
name - function nameuri - function uriargs - optional argumentsctx - query contextii - input infoQueryException - query exceptionpublic static FItem get(QNm name, long arity, boolean dyn, QueryContext ctx, InputInfo ii) throws QueryException
name - function namearity - number of argumentsdyn - dynamic invocation flagctx - query contextii - input infoQueryException - query exceptionpublic static TypedFunc get(QNm name, Expr[] args, boolean dyn, QueryContext ctx, InputInfo ii) throws QueryException
null.name - name of the functionargs - optional argumentsdyn - compile-/run-time flagctx - query contextii - input infoQueryException - query exceptionpublic void error(QNm name, InputInfo ii) throws QueryException
name - function nameii - input infoQueryException - query exception