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

Method getPublicFields

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

Get info about usual Java public fields incl. constants. @return Array of StringArrays that can be indexed with the MEMBER_xxx_IDX constants

()

Source from the content-addressed store, hash-verified

247 * @return Array of StringArrays that can be indexed with the MEMBER_xxx_IDX constants
248 */
249 public Object[] getPublicFields() {
250 Field[] fields = getClassUnderInspection().getFields();
251 Object[] result = new Object[fields.length];
252 for (int i = 0; i < fields.length; i++) {
253 Field field = fields[i];
254 result[i] = fieldInfo(field);
255 }
256 return result;
257 }
258
259 /**
260 * Get info about Properties (Java and Groovy alike).

Callers 1

testFieldsMethod · 0.95

Calls 3

fieldInfoMethod · 0.95
getFieldsMethod · 0.45

Tested by 1

testFieldsMethod · 0.76