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

Method setProperty

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

Overloaded to make variables appear as bean properties or via the subscript operator

(String property, Object newValue)

Source from the content-addressed store, hash-verified

135 * Overloaded to make variables appear as bean properties or via the subscript operator
136 */
137 @Override
138 public void setProperty(String property, Object newValue) {
139 /* @todo we should check if we have the property with the metaClass instead of try/catch */
140 try {
141 super.setProperty(property, newValue);
142 }
143 catch (MissingPropertyException e) {
144 setVariable(property, newValue);
145 }
146 }
147
148}

Callers

nothing calls this directly

Calls 2

setVariableMethod · 0.95
setPropertyMethod · 0.65

Tested by

no test coverage detected