Get info about usual Java public fields incl. constants. @return Array of StringArrays that can be indexed with the MEMBER_xxx_IDX constants
()
| 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). |