Package org.basex.query.var
Class VarStack
- java.lang.Object
-
- org.basex.util.list.ElementList
-
- org.basex.util.list.ObjectList<Var,VarStack>
-
- org.basex.query.var.VarStack
-
public final class VarStack extends ObjectList<Var,VarStack>
Variable stack.- Author:
- BaseX Team 2005-24, BSD License, Christian Gruen, Leo Woerteler
-
-
Field Summary
-
Fields inherited from class org.basex.util.list.ObjectList
list
-
Fields inherited from class org.basex.util.list.ElementList
factor, size
-
-
Constructor Summary
Constructors Constructor Description VarStack()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Var
get(QNm name)
Returns a variable with the specified name; should only be used while parsing, because it ignores the ids of variables.protected Var[]
newArray(int s)
Creates a resized array.-
Methods inherited from class org.basex.util.list.ObjectList
add, add, add, addUnique, contains, equals, equals, finish, get, insert, iterator, next, peek, pop, push, remove, removeAll, removeAll, reverse, set, sort, toArray, toString, unique
-
Methods inherited from class org.basex.util.list.ElementList
isEmpty, newCapacity, newCapacity, reset, size, size
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
get
public Var get(QNm name)
Returns a variable with the specified name; should only be used while parsing, because it ignores the ids of variables.- Parameters:
name
- variable name- Returns:
- variable or
null
-
newArray
protected Var[] newArray(int s)
Description copied from class:ObjectList
Creates a resized array.- Specified by:
newArray
in classObjectList<Var,VarStack>
- Parameters:
s
- size- Returns:
- array
-
-