|
||||||||||
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.xquery.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(XQContext 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)
Returns the specified function. |
void |
plan(Serializer ser)
Recursively sends the abstract syntax of this expression to the specified serializer. |
java.lang.String |
toString()
|
static void |
typeErr(QNm type)
Throws an error for the specified name. |
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) throws XQException
name
- name of the functionargs
- optional arguments
XQException
- evaluation exceptionpublic static void typeErr(QNm type) throws XQException
type
- type as string
XQException
- query exceptionpublic int add(Func fun) throws XQException
fun
- function instance
XQException
- evaluation exceptionpublic void comp(XQContext ctx) throws XQException
ctx
- xquery context
XQException
- xquery exceptionpublic void check() throws XQException
XQException
- xquery exceptionpublic void funError(QNm name) throws XQException
name
- function name
XQException
- xquery exceptionpublic void plan(Serializer ser) throws java.io.IOException
ExprInfo
plan
in class ExprInfo
ser
- serializer
java.io.IOException
- exceptionpublic java.lang.String toString()
toString
in class ExprInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |