Get info about usual Java instance and class Methods as well as Constructors.
()
| 194 | * Get info about usual Java instance and class Methods as well as Constructors. |
| 195 | */ |
| 196 | public Tuple2[] getMethodsWithInfo() { |
| 197 | Method[] methods = getClassUnderInspection().getMethods(); |
| 198 | Constructor[] ctors = getClassUnderInspection().getConstructors(); |
| 199 | Tuple2[] result = new Tuple2[methods.length + ctors.length]; |
| 200 | int resultIndex = 0; |
| 201 | for (; resultIndex < methods.length; resultIndex++) { |
| 202 | Method method = methods[resultIndex]; |
| 203 | result[resultIndex] = Tuple2.tuple(method, methodInfo(method)); |
| 204 | } |
| 205 | for (int i = 0; i < ctors.length; i++, resultIndex++) { |
| 206 | Constructor ctor = ctors[i]; |
| 207 | result[resultIndex] = Tuple2.tuple(ctor, methodInfo(ctor)); |
| 208 | } |
| 209 | return result; |
| 210 | } |
| 211 | |
| 212 | /** |
| 213 | * Get info about instance and class Methods that are dynamically added through Groovy. |
nothing calls this directly
no test coverage detected