public final class QueryStack extends Object
Constructor and Description |
---|
QueryStack() |
Modifier and Type | Method and Description |
---|---|
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 |
reuseFrame(int newFrameSize)
Prepares the current stack frame to be reused.
|
void |
set(Var var,
Value val,
QueryContext qc,
InputInfo ii)
Sets the value of the given variable in the current stack frame.
|
String |
toString() |
public int enterFrame(int size)
size
- size of this framepublic void reuseFrame(int newFrameSize)
newFrameSize
- new frame sizepublic void exitFrame(int fpt)
fpt
- frame pointer of the underlying stack framepublic Value get(Var var)
var
- variablepublic void set(Var var, Value val, QueryContext qc, InputInfo ii) throws QueryException
var
- variable to bind the value toval
- value to bindqc
- query contextii
- input infoQueryException
- if the value does not have the right typeCopyright © 2005–2015 BaseX Team. All rights reserved.