|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.hash.ASet
org.basex.util.hash.TokenSet
org.basex.query.func.Functions
public final class Functions
This class provides access to statically available functions.
Field Summary |
---|
Fields inherited from class org.basex.util.hash.TokenSet |
---|
keys |
Fields inherited from class org.basex.util.hash.ASet |
---|
bucket, next, size |
Method Summary | |
---|---|
static Functions |
get()
Returns the singleton instance. |
static TypedFunc |
get(QNm name,
Expr[] args,
boolean dyn,
QueryContext ctx,
InputInfo ii)
Returns an instance of a with the specified name and number of arguments, or null . |
StandardFunc |
get(QNm name,
Expr[] args,
InputInfo ii)
Returns the specified function. |
static Expr |
getLiteral(QNm name,
int arity,
QueryContext ctx,
InputInfo ii)
Gets a function literal for a known function. |
static FuncItem |
getUser(StaticFunc sf,
QueryContext ctx,
InputInfo info)
Returns a function item for a user-defined function. |
protected void |
rehash(int s)
Rehashes all entries. |
Methods inherited from class org.basex.util.hash.TokenSet |
---|
add, add, clear, contains, delete, hash, id, iterator, key, put, read, toString, write |
Methods inherited from class org.basex.util.hash.ASet |
---|
checkSize, isEmpty, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static Functions get()
public StandardFunc get(QNm name, Expr[] args, InputInfo ii) throws QueryException
name
- function qnameargs
- optional argumentsii
- input info
QueryException
- query exceptionpublic static Expr getLiteral(QNm name, int arity, QueryContext ctx, InputInfo ii) throws QueryException
name
- function namearity
- number of argumentsctx
- query contextii
- input info
null
otherwise
QueryException
- query exceptionpublic static FuncItem getUser(StaticFunc sf, QueryContext ctx, InputInfo info) throws QueryException
sf
- static functionctx
- query contextinfo
- input info
QueryException
- 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 info
QueryException
- query exceptionprotected void rehash(int s)
ASet
rehash
in class TokenSet
s
- new hash size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |