Builds descriptive information for a Java method. @param method the method to describe @return the method information array
(Method method)
| 393 | * @return the method information array |
| 394 | */ |
| 395 | protected String[] methodInfo(Method method) { |
| 396 | String[] result = new String[MEMBER_EXCEPTIONS_IDX + 1]; |
| 397 | result[MEMBER_ORIGIN_IDX] = JAVA; |
| 398 | result[MEMBER_DECLARER_IDX] = shortName(method.getDeclaringClass()); |
| 399 | result[MEMBER_MODIFIER_IDX] = Modifier.toString(method.getModifiers()); |
| 400 | result[MEMBER_NAME_IDX] = method.getName(); |
| 401 | result[MEMBER_TYPE_IDX] = shortName(method.getReturnType()); |
| 402 | result[MEMBER_PARAMS_IDX] = makeParamsInfo(method.getParameterTypes()); |
| 403 | result[MEMBER_EXCEPTIONS_IDX] = makeExceptionInfo(method.getExceptionTypes()); |
| 404 | |
| 405 | return withoutNulls(result); |
| 406 | } |
| 407 | |
| 408 | /** |
| 409 | * Builds descriptive information for a constructor. |
no test coverage detected