MCPcopy Index your code
hub / github.com/beanshell/beanshell / getMethodDescriptor

Method getMethodDescriptor

src/bsh/org/objectweb/asm/Type.java:493–505  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

generateMethodMethod · 0.95

Calls 5

getDescriptorMethod · 0.95
appendMethod · 0.80
toStringMethod · 0.45
getParameterTypesMethod · 0.45
getReturnTypeMethod · 0.45

Tested by

no test coverage detected