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

Method getProperty

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

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

(String property)

Source from the content-addressed store, hash-verified

121 * Overloaded to make variables appear as bean properties or via the subscript operator
122 */
123 @Override
124 public Object getProperty(String property) {
125 /* @todo we should check if we have the property with the metaClass instead of try/catch */
126 try {
127 return super.getProperty(property);
128 }
129 catch (MissingPropertyException e) {
130 return getVariable(property);
131 }
132 }
133
134 /**
135 * Overloaded to make variables appear as bean properties or via the subscript operator

Callers

nothing calls this directly

Calls 2

getVariableMethod · 0.95
getPropertyMethod · 0.65

Tested by

no test coverage detected