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

Method setProperty

src/main/java/groovy/util/Node.java:353–360  ·  view source on GitHub ↗

{@inheritDoc}

(final Object object, final String property, final Object newValue)

Source from the content-addressed store, hash-verified

351
352 /** {@inheritDoc} */
353 @Override
354 public void setProperty(final Object object, final String property, final Object newValue) {
355 if (property.startsWith("@")) {
356 setAttribute(object, property.substring(1), newValue);
357 } else {
358 super.setProperty(object, property, newValue);
359 }
360 }
361
362 /** {@inheritDoc} */
363 @Override

Callers

nothing calls this directly

Calls 4

setAttributeMethod · 0.95
substringMethod · 0.80
setPropertyMethod · 0.65
startsWithMethod · 0.45

Tested by

no test coverage detected