MCPcopy Index your code
hub / github.com/apache/groovy / setVariable

Method setVariable

src/main/java/groovy/lang/Binding.java:81–85  ·  view source on GitHub ↗

Sets the value of the given variable @param name the name of the variable to set @param value the new value for the given variable

(String name, Object value)

Source from the content-addressed store, hash-verified

79 * @param value the new value for the given variable
80 */
81 public void setVariable(String name, Object value) {
82 if (variables == null)
83 variables = new LinkedHashMap();
84 variables.put(name, value);
85 }
86
87 /**
88 * remove the variable with the specified name

Callers 15

configureCompilerMethod · 0.95
runMethod · 0.95
runMethod · 0.95
BindingMethod · 0.95
setPropertyMethod · 0.95
runMethod · 0.95
meMethod · 0.95
xyMethod · 0.95

Calls 1

putMethod · 0.65

Tested by 5

runMethod · 0.76
runMethod · 0.76