|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xpath.func.XPathContext
public final class XPathContext
Global expression context.
| Method Summary | |
|---|---|
Item |
evalVariable(byte[] name)
Evaluates a variable. |
static XPathContext |
get()
Returns single instance of this class. |
Func |
getFunction(byte[] name,
Expr[] args)
Evaluates the specified function. |
void |
registerVariable(java.lang.String name,
byte[] value)
Registers a variable. |
void |
registerVariable(java.lang.String variableName,
double value)
Registers a variable. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Item evalVariable(byte[] name)
throws ParseException
name - name of the variable
ParseException - parsing exceptionpublic static XPathContext get()
public Func getFunction(byte[] name,
Expr[] args)
throws ParseException
name - name of the functionargs - optional arguments
ParseException - parsing exception
public void registerVariable(java.lang.String name,
byte[] value)
name - name of the variable.value - variable as string.
public void registerVariable(java.lang.String variableName,
double value)
variableName - name of the variable.value - double value of variable.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||