Returns the descriptor corresponding to the given argument and return types. @param returnType the return type of the method. @param argumentTypes the argument types of the method. @return the descriptor corresponding to the given argument and return types.
(
final Type returnType,
final Type[] argumentTypes)
| 491 | */ |
| 492 | |
| 493 | public static String getMethodDescriptor ( |
| 494 | final Type returnType, |
| 495 | final Type[] argumentTypes) |
| 496 | { |
| 497 | StringBuffer buf = new StringBuffer(); |
| 498 | buf.append('('); |
| 499 | for (int i = 0; i < argumentTypes.length; ++i) { |
| 500 | argumentTypes[i].getDescriptor(buf); |
| 501 | } |
| 502 | buf.append(')'); |
| 503 | returnType.getDescriptor(buf); |
| 504 | return buf.toString(); |
| 505 | } |
| 506 | |
| 507 | /** |
| 508 | * Appends the descriptor corresponding to this Java type to the given string |
no test coverage detected