Modifier and Type | Method and Description |
---|---|
static Functions |
get()
Returns the singleton instance.
|
static TypedFunc |
get(QNm name,
Expr[] args,
QueryContext qc,
StaticContext sc,
InputInfo ii)
Returns a function with the specified name and number of arguments,
or
null . |
StandardFunc |
get(QNm name,
Expr[] args,
StaticContext sc,
InputInfo ii)
Returns the specified function.
|
static Expr |
getLiteral(QNm name,
int arity,
QueryContext qc,
StaticContext sc,
InputInfo ii,
boolean runtime)
Gets a function literal for a known function.
|
static FuncItem |
getUser(StaticFunc sf,
QueryContext qc,
StaticContext sc,
InputInfo info)
Returns a function item for a user-defined function.
|
protected void |
rehash(int s)
Rehashes all entries.
|
public static Functions get()
public StandardFunc get(QNm name, Expr[] args, StaticContext sc, InputInfo ii) throws QueryException
name
- function qnameargs
- optional argumentssc
- static contextii
- input infoQueryException
- query exceptionpublic static Expr getLiteral(QNm name, int arity, QueryContext qc, StaticContext sc, InputInfo ii, boolean runtime) throws QueryException
name
- function namearity
- number of argumentsqc
- query contextsc
- static contextii
- input inforuntime
- true
if this method is called at run-time, false
otherwisenull
otherwiseQueryException
- query exceptionpublic static FuncItem getUser(StaticFunc sf, QueryContext qc, StaticContext sc, InputInfo info) throws QueryException
sf
- static functionqc
- query contextsc
- static contextinfo
- input infoQueryException
- query exceptionpublic static TypedFunc get(QNm name, Expr[] args, QueryContext qc, StaticContext sc, InputInfo ii) throws QueryException
null
.name
- name of the functionargs
- optional argumentsqc
- query contextsc
- static contextii
- input infoQueryException
- query exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.