List of usage examples for javax.script SimpleBindings entrySet
public Set<Map.Entry<String, Object>> entrySet()
From source file:com.tussle.script.StackedBindings.java
public Bindings pop() { //Get the top map SimpleBindings topValue = bindingStack.pop(); if (bindingStack.isEmpty()) bindingStack.push(new SimpleBindings()); for (Map.Entry<String, Object> entry : topValue.entrySet()) { Object val = bindingMap.get(entry.getKey()).pop(); if (bindingMap.get(entry.getKey()).isEmpty()) bindingMap.remove(entry.getKey()); assert val == entry.getValue(); }/*from ww w.j a va 2 s .co m*/ return topValue; }