Beispiel #1
0
 public Object put(String name, Object value) {
   if (storeScriptVariables) {
     Object oldValue = null;
     if (!UNSTORED_KEYS.contains(name)) {
       oldValue = variableScope.getVariable(name);
       variableScope.setVariable(name, value);
       return oldValue;
     }
   }
   return defaultBindings.put(name, value);
 }
Beispiel #2
0
 public Set<String> keySet() {
   return variableScope.getVariables().keySet();
 }
Beispiel #3
0
 public Set<Map.Entry<String, Object>> entrySet() {
   return variableScope.getVariables().entrySet();
 }
Beispiel #4
0
 public Collection<Object> values() {
   return variableScope.getVariables().values();
 }
Beispiel #5
0
 public int size() {
   return variableScope.getVariables().size();
 }