public final class UserFuncs extends ExprInfo
| Constructor and Description |
|---|
UserFuncs() |
| Modifier and Type | Method and Description |
|---|---|
int |
add(UserFunc fun,
InputInfo ii)
Adds a local function.
|
void |
check()
Checks if all functions have been correctly declared, and initializes
all function calls.
|
void |
comp(QueryContext ctx)
Compiles the functions.
|
UserFunc[] |
funcs()
Returns all user-defined functions.
|
void |
funError(QNm name,
InputInfo ii)
Finds similar function names and throws an error message.
|
void |
plan(Serializer ser)
Serializes the expression tree.
|
java.lang.String |
toString() |
description, infopublic UserFunc[] funcs()
public int add(UserFunc fun, InputInfo ii) throws QueryException
fun - function instanceii - input infoQueryException - query exceptionpublic void check()
throws QueryException
QueryException - query exceptionpublic void comp(QueryContext ctx) throws QueryException
ctx - query contextQueryException - query exceptionpublic void funError(QNm name, InputInfo ii) throws QueryException
name - function nameii - input infoQueryException - query exceptionpublic void plan(Serializer ser) throws java.io.IOException
ExprInfo