示例#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);
 }
示例#2
0
 public Set<String> keySet() {
   return variableScope.getVariables().keySet();
 }
示例#3
0
 public Set<Map.Entry<String, Object>> entrySet() {
   return variableScope.getVariables().entrySet();
 }
示例#4
0
 public Collection<Object> values() {
   return variableScope.getVariables().values();
 }
示例#5
0
 public int size() {
   return variableScope.getVariables().size();
 }