|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.ExprInfo
org.basex.query.util.Functions
public final class Functions
Global expression context.
| Constructor Summary | |
|---|---|
Functions()
|
|
| Method Summary | |
|---|---|
int |
add(Func fun)
Adds a local function. |
void |
check()
Checks if all functions have been correctly initialized. |
void |
comp(QueryContext ctx)
Compiles the functions. |
void |
funError(QNm name)
Finds similar function names and throws an error message. |
Func |
get(int id)
Returns the function with the specified id. |
Expr |
get(QNm name,
Expr[] args,
QueryContext ctx)
Returns the specified function. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
String |
toString()
|
| Methods inherited from class org.basex.query.ExprInfo |
|---|
color, info, name |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Functions()
| Method Detail |
|---|
public Func get(int id)
id - function id
public Expr get(QNm name,
Expr[] args,
QueryContext ctx)
throws QueryException
name - name of the functionargs - optional argumentsctx - query context
QueryException - query exception
public int add(Func fun)
throws QueryException
fun - function instance
QueryException - query exception
public void comp(QueryContext ctx)
throws QueryException
ctx - query context
QueryException - query exception
public void check()
throws QueryException
QueryException - query exception
public void funError(QNm name)
throws QueryException
name - function name
QueryException - query exception
public void plan(Serializer ser)
throws IOException
ExprInfo
plan in class ExprInfoser - serializer
IOException - I/O exceptionpublic String toString()
toString in class ExprInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||