|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.QueryStack
public class QueryStack
The query stack, containing local variable bindings of all active scopes.
Constructor Summary | |
---|---|
QueryStack()
|
Method Summary | |
---|---|
int |
enterFrame(int size)
Enters a new stack frame. |
void |
exitFrame(int fpt)
Exits a stack frame and makes all bound variables eligible for garbage collection. |
Value |
get(Var var)
Gets the value bound to the given variable in the current stack frame. |
void |
set(Var var,
Value val,
QueryContext ctx,
InputInfo ii)
Sets the value of the given variable in the current stack frame. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryStack()
Method Detail |
---|
public int enterFrame(int size)
size
- size of this frame
public void exitFrame(int fpt)
fpt
- frame pointer of the underlying stack framepublic Value get(Var var)
var
- variable
public void set(Var var, Value val, QueryContext ctx, InputInfo ii) throws QueryException
var
- variable to bind the value toval
- value to bindctx
- query contextii
- input info
QueryException
- if the value does not have the right typepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |