public final class VarStack extends ExprInfo
| Modifier and Type | Field and Description |
|---|---|
int |
size
Number of stored variables.
|
Var[] |
vars
Variable expressions.
|
| Constructor and Description |
|---|
VarStack()
Default constructor.
|
VarStack(int c)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Var v)
Adds the specified variable.
|
void |
checkUp()
Checks if none of the variables contains an updating expression.
|
boolean |
contains(Var v)
Checks if the given variable is in this list.
|
Var |
get(QNm name)
Returns a variable with the specified name; should only be
used while parsing because it ignores ids of variables.
|
Var |
get(Var v)
Returns a variable with the same id.
|
void |
plan(Serializer ser)
Serializes the expression tree.
|
java.lang.String |
toString() |
void |
update(Var v)
Adds or replaces the specified variable.
|
description, infopublic Var[] vars
public int size
public VarStack()
public VarStack(int c)
c - initial capacitypublic void update(Var v)
v - variablepublic void add(Var v)
v - variablepublic Var get(QNm name)
name - variable namepublic Var get(Var v)
v - variablepublic boolean contains(Var v)
v - variabletrue if the variable was found, false otherwisepublic void checkUp()
throws QueryException
QueryException - query exceptionpublic void plan(Serializer ser) throws java.io.IOException
ExprInfo