Exemple #1
0
  public void PopFrame() {
    if (_useFrames) {
      boolean boolTop = _boolStack.top();
      int intTop = _intStack.top();
      float floatTop = _floatStack.top();
      Object nameTop = _nameStack.top();
      Object codeTop = _codeStack.top();

      PopStacks();

      _floatStack.push(floatTop);
      _intStack.push(intTop);
      _boolStack.push(boolTop);

      if (nameTop != null) _nameStack.push(nameTop);
      if (codeTop != null) _codeStack.push(codeTop);
    }
  }
Exemple #2
0
  /** Resets the Push interpreter state by clearing all of the stacks. */
  public void ClearStacks() {
    _intStack.clear();
    _floatStack.clear();
    _execStack.clear();
    _nameStack.clear();
    _boolStack.clear();
    _codeStack.clear();
    _inputStack.clear();

    // Clear all custom stacks
    for (Stack s : _customStacks) {
      s.clear();
    }
  }