Example usage for javax.script SimpleBindings entrySet

List of usage examples for javax.script SimpleBindings entrySet

Introduction

In this page you can find the example usage for javax.script SimpleBindings entrySet.

Prototype

public Set<Map.Entry<String, Object>> entrySet() 

Source Link

Usage

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;
}