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

Method getPropertyInfo

src/main/java/groovy/inspect/Inspector.java:264–273  ·  view source on GitHub ↗

Get info about Properties (Java and Groovy alike). @return Array of StringArrays that can be indexed with the MEMBER_xxx_IDX constants

()

Source from the content-addressed store, hash-verified

262 * @return Array of StringArrays that can be indexed with the MEMBER_xxx_IDX constants
263 */
264 public Object[] getPropertyInfo() {
265 List props = DefaultGroovyMethods.getMetaPropertyValues(objectUnderInspection);
266 Object[] result = new Object[props.size()];
267 int i = 0;
268 for (Iterator iter = props.iterator(); iter.hasNext(); i++) {
269 PropertyValue pv = (PropertyValue) iter.next();
270 result[i] = fieldInfo(pv);
271 }
272 return result;
273 }
274
275 /**
276 * Builds descriptive information for a Java field.

Callers 1

testPropertiesMethod · 0.95

Calls 6

getMetaPropertyValuesMethod · 0.95
fieldInfoMethod · 0.95
sizeMethod · 0.65
iteratorMethod · 0.65
hasNextMethod · 0.45
nextMethod · 0.45

Tested by 1

testPropertiesMethod · 0.76