Class VarStack

All Implemented Interfaces:
Iterable<Var>

public final class VarStack extends ObjectList<Var,VarStack>
Variable stack.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen, Leo Woerteler
  • Constructor Details

    • VarStack

      public VarStack()
      Default constructor.
  • Method Details

    • 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 class ObjectList<Var,VarStack>
      Parameters:
      s - size
      Returns:
      array