MCPcopy Create free account
hub / github.com/apache/groovy / getProperty

Method getProperty

src/main/java/groovy/util/Expando.java:88–100  ·  view source on GitHub ↗

Resolves a property from the dynamic property map before normal lookup. @param property the property name @return the property value, or null if it is not defined

(String property)

Source from the content-addressed store, hash-verified

86 * @return the property value, or {@code null} if it is not defined
87 */
88 @Override
89 public Object getProperty(String property) {
90 // always use the expando properties first
91 Object result = getProperties().get(property);
92 if (result != null) return result;
93 try {
94 return super.getProperty(property);
95 }
96 catch (MissingPropertyException e) {
97 // IGNORE
98 }
99 return null;
100 }
101
102 /**
103 * Stores a dynamic property.

Callers 1

invokeMethodMethod · 0.95

Calls 3

getPropertiesMethod · 0.95
getMethod · 0.65
getPropertyMethod · 0.65

Tested by

no test coverage detected