Get info about Properties (Java and Groovy alike). @return Array of StringArrays that can be indexed with the MEMBER_xxx_IDX constants
()
| 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. |