MCPcopy Create free account
hub / github.com/beanshell/beanshell / Bindings

Interface Bindings

engine/javax-src/javax/script/Bindings.java:19–42  ·  view source on GitHub ↗

A mapping of key/value pairs, all of whose keys are Strings . @version 1.0 @author Mike Grogan @since 1.6

Source from the content-addressed store, hash-verified

17 * @since 1.6
18 */
19public interface Bindings extends Map<String, Object> {
20 /**
21 * Set a named value.
22 *
23 * @param name The name associated with the value.
24 * @param value The value associated with the name.
25 *
26 * @return The value previously associated with the given name.
27 * Returns null if no value was previously associated with the name.
28 *
29 * @throws <code>NullPointerException</code> if the name is null.
30 * @throws <code>IllegalArgumentException</code> if the name is empty String.
31 */
32 public Object put(String name, Object value);
33
34 /**
35 * Adds all the mappings in a given <code>Map</code> to this <code>Bindings</code.
36 * @param toMerge The <code>Map</code> to merge with this one.
37 *
38 * @throws <code>NullPointerException</code> if some key in the map is null.
39 * @throws <code>IllegalArgumentException</code> if some key in the map is an empty String.
40 */
41 public void putAll(Map<? extends String, ? extends Object> toMerge);
42}

Callers 10

mainMethod · 0.95
putMethod · 0.95
putMethod · 0.65
setAttributeMethod · 0.65
putMethod · 0.65
registerEngineNameMethod · 0.65
putAllMethod · 0.65
evalMethod · 0.65

Implementers 2

SimpleBindingsengine/javax-src/javax/script/SimpleBi
ScriptContextEngineViewengine/src/bsh/engine/ScriptContextEng

Calls

no outgoing calls

Tested by

no test coverage detected