Get info about instance and class Methods that are dynamically added through Groovy.
()
| 230 | * Get info about instance and class Methods that are dynamically added through Groovy. |
| 231 | */ |
| 232 | public Tuple2[] getMetaMethodsWithInfo() { |
| 233 | MetaClass metaClass = InvokerHelper.getMetaClass(objectUnderInspection); |
| 234 | List<MetaMethod> metaMethods = metaClass.getMetaMethods(); |
| 235 | Tuple2[] result = new Tuple2[metaMethods.size()]; |
| 236 | int i = 0; |
| 237 | for (Iterator<MetaMethod> iter = metaMethods.iterator(); iter.hasNext(); i++) { |
| 238 | MetaMethod metaMethod = iter.next(); |
| 239 | result[i] = Tuple2.tuple(metaMethod, methodInfo(metaMethod)); |
| 240 | } |
| 241 | return result; |
| 242 | } |
| 243 | |
| 244 | /** |
| 245 | * Get info about usual Java public fields incl. constants. |
nothing calls this directly
no test coverage detected