|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.list.ElementList
org.basex.query.var.VarStack
public final class VarStack
Variable stack.
Field Summary | |
---|---|
Var[] |
vars
Variable expressions. |
Fields inherited from class org.basex.util.list.ElementList |
---|
factor, size |
Constructor Summary | |
---|---|
VarStack()
Default constructor. |
|
VarStack(int c)
Default constructor. |
Method Summary | |
---|---|
void |
clear()
Empties this stack. |
Var |
get(QNm name)
Returns a variable with the specified name; should only be used while parsing because it ignores ids of variables. |
void |
push(Var v)
Adds the specified variable. |
Methods inherited from class org.basex.util.list.ElementList |
---|
isEmpty, newSize, newSize, reset, size, size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Var[] vars
Constructor Detail |
---|
public VarStack()
public VarStack(int c)
c
- initial capacityMethod Detail |
---|
public void push(Var v)
v
- variablepublic Var get(QNm name)
name
- variable name
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |