|
Qizx/Open v0.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
XQuery Evaluation Context. (internal use)
Field Summary | |
static int |
DOUBLE_REGISTER
|
static int |
INT_REGISTER
|
static int |
ITEM_REGISTER
|
static int |
LAST_REGISTER
|
static int |
MAX_REGISTER
Maximum number of registers for each scalar type (integer, double, string, item) |
static int |
STRING_REGISTER
|
Method Summary | |
void |
at(net.xfra.qizxopen.xquery.op.Expression pt)
Notes the current evaluation point for trace & debug. |
Value |
error(net.xfra.qizxopen.xquery.op.Expression location,
EvalException error)
Raises an EvalException that is located to this context. |
Value |
error(net.xfra.qizxopen.xquery.op.Expression location,
java.lang.String error)
|
EvalContext |
getCallerContext()
Returns the calling context, null if not inside a user function. |
java.text.Collator |
getCollator(java.lang.String uri)
Finds a collation by its URI. |
java.util.Date |
getCurrentDate()
Time at start of query evaluation. |
net.xfra.qizxopen.xquery.op.Expression |
getCurrentLocation()
|
java.io.PrintWriter |
getDefaultOutput()
Defined externally (by default stdout or servlet output) |
Value |
getDocument(java.lang.String uri)
Finds a document by URI. |
DocumentManager |
getDocumentManager()
Returns the document manager used by this context. |
int |
getImplicitTimezone()
implicit time zone as a difference in minutes from GMT (or UTC). |
Value |
getInput()
Returns the document or collection input. |
Log |
getLog()
Gets a message Log, either set explictly or from the static context. |
java.lang.Object |
getProperty(java.lang.String name)
Retrieves a named property from the context. |
StaticContext |
getStaticContext()
Returns the initial static context. |
Value |
loadGlobal(net.xfra.qizxopen.xquery.op.GlobalVariable var)
Gets the value of a global variable. |
Value |
loadLocal(int address)
Gets the value of a local variable. |
double |
loadLocalDouble(int address)
Loads a scalar double local variable |
long |
loadLocalInteger(int address)
Loads a scalar integer local variable |
Item |
loadLocalItem(int address)
Loads a scalar local variable |
java.lang.String |
loadLocalString(int address)
Loads a scalar String local variable |
void |
printStack(Log log,
int maxDepth)
Prints the calling stack to a Log, with amaximum depth. |
void |
storeLocal(int address,
net.xfra.qizxopen.xquery.op.Expression expr,
Type dynamicType,
Focus focus,
EvalContext calling)
Evaluates an expression and store the result into a local variable. |
void |
storeLocal(int address,
Value value,
boolean current)
Stores a value or its current item to a local variable [for, some, every]. |
void |
storeLocalInteger(int address,
long value)
Stores the positional variable in [for, some, every]. |
EvalContext |
subContext(net.xfra.qizxopen.xquery.fn.UserFunction.Call called)
Helper creating a context for the called function. |
Field Detail |
public static final int MAX_REGISTER
public static final int INT_REGISTER
public static final int DOUBLE_REGISTER
public static final int STRING_REGISTER
public static final int ITEM_REGISTER
public static final int LAST_REGISTER
Method Detail |
public StaticContext getStaticContext()
public EvalContext getCallerContext()
public EvalContext subContext(net.xfra.qizxopen.xquery.fn.UserFunction.Call called) throws EvalException
EvalException
public void at(net.xfra.qizxopen.xquery.op.Expression pt) throws XQueryException
XQueryException
public Value getInput()
public Value getDocument(java.lang.String uri) throws XQueryException
XQueryException
public DocumentManager getDocumentManager()
public java.io.PrintWriter getDefaultOutput()
public Log getLog()
public java.lang.Object getProperty(java.lang.String name)
public java.text.Collator getCollator(java.lang.String uri) throws XQueryException
uri
- collation URI. If null, the default collation is returned.
XQueryException
public java.util.Date getCurrentDate()
public int getImplicitTimezone()
public Value error(net.xfra.qizxopen.xquery.op.Expression location, EvalException error) throws EvalException
EvalException
public Value error(net.xfra.qizxopen.xquery.op.Expression location, java.lang.String error) throws EvalException
EvalException
public net.xfra.qizxopen.xquery.op.Expression getCurrentLocation()
public void printStack(Log log, int maxDepth)
public Value loadGlobal(net.xfra.qizxopen.xquery.op.GlobalVariable var) throws XQueryException
EvalException
- if the variable has no specified value.
XQueryException
public Value loadLocal(int address) throws XQueryException
XQueryException
public long loadLocalInteger(int address) throws XQueryException
XQueryException
public double loadLocalDouble(int address) throws XQueryException
XQueryException
public java.lang.String loadLocalString(int address) throws XQueryException
XQueryException
public Item loadLocalItem(int address) throws XQueryException
XQueryException
public void storeLocal(int address, net.xfra.qizxopen.xquery.op.Expression expr, Type dynamicType, Focus focus, EvalContext calling) throws XQueryException
TypeException
- if improper check
XQueryException
public void storeLocal(int address, Value value, boolean current) throws XQueryException
current
- if true, stores only the current item, else stores
the whole sequence.
TypeException
- if improper check
XQueryException
public void storeLocalInteger(int address, long value)
|
Copyright Xavier FRANC 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |