/** * Returns a variable map in one of {@link LocalContextScope}. Variables * in this map is used to share between Java and Ruby. Map keys are Ruby's * variable names, thus they must be valid Ruby names. * * @return a variable map specific to the current thread */ public BiVariableMap getVarMap() { return provider.getVarMap(); }
/** * Returns a variable map in one of {@link LocalContextScope}. Variables * in this map is used to share between Java and Ruby. Map keys are Ruby's * variable names, thus they must be valid Ruby names. * * @return a variable map specific to the current thread */ public BiVariableMap getVarMap() { return provider.getVarMap(); }
/** * Returns a variable map in one of {@link LocalContextScope}. Variables * in this map is used to share between Java and Ruby. Map keys are Ruby's * variable names, thus they must be valid Ruby names. * * @return a variable map specific to the current thread */ public BiVariableMap getVarMap() { return provider.getVarMap(); }
/** * Returns a variable map in one of {@link LocalContextScope}. Variables * in this map is used to share between Java and Ruby. Map keys are Ruby's * variable names, thus they must be valid Ruby names. * * @return a variable map specific to the current thread */ public BiVariableMap getVarMap() { return provider.getVarMap(); }
/** * Removes all of the mappings from this map. * The map will be empty after this call returns. Ruby variables are also * removed from Ruby instance. However, Ruby instance keep having global variable * names with null value. * This is a short cut method of ScriptingContainer#getVarMap().clear(). */ public void clear() { provider.getVarMap().clear(); }
/** * Returns a value of the specified key in a top level of runtime or null * if this map doesn't have a mapping for the key. The key * must be a valid Ruby variable or constant name. * * @param key is a key whose associated value is to be returned * @return a value to which the specified key is mapped, or null if this * map contains no mapping for the key */ public Object get(String key) { return provider.getVarMap().get(key); }
/** * Returns a value of the specified key in a top level of runtime or null * if this map doesn't have a mapping for the key. The key * must be a valid Ruby variable or constant name. * * @param key is a key whose associated value is to be returned * @return a value to which the specified key is mapped, or null if this * map contains no mapping for the key */ public Object get(String key) { return provider.getVarMap().get(key); }
/** * Removes all of the mappings from this map. * The map will be empty after this call returns. Ruby variables are also * removed from Ruby instance. However, Ruby instance keep having global variable * names with null value. * This is a short cut method of ScriptingContainer#getVarMap().clear(). */ public void clear() { provider.getVarMap().clear(); }
/** * Returns a value of the specified key in a top level of runtime or null * if this map doesn't have a mapping for the key. The key * must be a valid Ruby variable or constant name. * * @param key is a key whose associated value is to be returned * @return a value to which the specified key is mapped, or null if this * map contains no mapping for the key */ public Object get(String key) { return provider.getVarMap().get(key); }
/** * Removes all of the mappings from this map. * The map will be empty after this call returns. Ruby variables are also * removed from Ruby instance. However, Ruby instance keep having global variable * names with null value. * This is a short cut method of ScriptingContainer#getVarMap().clear(). */ public void clear() { provider.getVarMap().clear(); }
/** * Removes all of the mappings from this map. * The map will be empty after this call returns. Ruby variables are also * removed from Ruby instance. However, Ruby instance keep having global variable * names with null value. * This is a short cut method of ScriptingContainer#getVarMap().clear(). */ public void clear() { provider.getVarMap().clear(); }
/** * Returns a value of the specified key in a top level of runtime or null * if this map doesn't have a mapping for the key. The key * must be a valid Ruby variable or constant name. * * @param key is a key whose associated value is to be returned * @return a value to which the specified key is mapped, or null if this * map contains no mapping for the key */ public Object get(String key) { return provider.getVarMap().get(key); }
/** * Removes the specified Ruby variable with the specified variable name from a * variable map and runtime top level. If the map previously contained a * mapping for the key, the old value is returned. The key must be a valid * Ruby variable name. * * @param key is a key that the specified value is to be associated with * @return a previous value associated with a key, or null if there was * no mapping for this key. */ public Object remove(String key) { return provider.getVarMap().remove(key); }
/** * Removes the specified Ruby variable with the specified variable name from a * variable map and runtime top level. If the map previously contained a * mapping for the key, the old value is returned. The key must be a valid * Ruby variable name. * * @param key is a key that the specified value is to be associated with * @return a previous value associated with a key, or null if there was * no mapping for this key. */ public Object remove(String key) { return provider.getVarMap().remove(key); }
/** * Returns a value of a specified key in a specified receiver or null if * a variable map doesn't have a mapping for the key in a given * receiver. The key must be a valid Ruby variable or constant name. A global * variable doesn't depend on the receiver. * * @param receiver a receiver to get the value from * @param key is a key whose associated value is to be returned * @return a value to which the specified key is mapped, or null if this * map contains no mapping for the key */ public Object get(Object receiver, String key) { return provider.getVarMap().get(receiver, key); }
/** * Removes the specified Ruby variable with the specified variable name in a * variable map and given receiver. If the map previously contained a mapping for the key, * the old value is returned. The key must be a valid Ruby variable name. * This is a short cut method of ScriptingContainer#getVarMap().remove(key). * * @param receiver a receiver to remove the value from * @param key is a key that the specified value is to be associated with * @return a previous value associated with a key, or null if there was * no mapping for this key. */ public Object remove(Object receiver, String key) { return provider.getVarMap().removeFrom(receiver, key); }
/** * Removes the specified Ruby variable with the specified variable name from a * variable map and runtime top level. If the map previously contained a * mapping for the key, the old value is returned. The key must be a valid * Ruby variable name. * * @param key is a key that the specified value is to be associated with * @return a previous value associated with a key, or null if there was * no mapping for this key. */ public Object remove(String key) { return provider.getVarMap().remove(key); }
/** * Removes the specified Ruby variable with the specified variable name from a * variable map and runtime top level. If the map previously contained a * mapping for the key, the old value is returned. The key must be a valid * Ruby variable name. * * @param key is a key that the specified value is to be associated with * @return a previous value associated with a key, or null if there was * no mapping for this key. */ public Object remove(String key) { return provider.getVarMap().remove(key); }
/** * Returns a value of a specified key in a specified receiver or null if * a variable map doesn't have a mapping for the key in a given * receiver. The key must be a valid Ruby variable or constant name. A global * variable doesn't depend on the receiver. * * @param receiver a receiver to get the value from * @param key is a key whose associated value is to be returned * @return a value to which the specified key is mapped, or null if this * map contains no mapping for the key */ public Object get(Object receiver, String key) { return provider.getVarMap().get(receiver, key); }
/** * Removes the specified Ruby variable with the specified variable name in a * variable map and given receiver. If the map previously contained a mapping for the key, * the old value is returned. The key must be a valid Ruby variable name. * This is a short cut method of ScriptingContainer#getVarMap().remove(key). * * @param receiver a receiver to remove the value from * @param key is a key that the specified value is to be associated with * @return a previous value associated with a key, or null if there was * no mapping for this key. */ public Object remove(Object receiver, String key) { return provider.getVarMap().removeFrom(receiver, key); }