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

Method getMethodDescriptor

src/jvm/clojure/asm/Type.java:600–609  ·  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

598 * @return the descriptor corresponding to the given argument and return types.
599 */
600 public static String getMethodDescriptor(final Type returnType, final Type... argumentTypes) {
601 StringBuilder stringBuilder = new StringBuilder();
602 stringBuilder.append('(');
603 for (int i = 0; i < argumentTypes.length; ++i) {
604 argumentTypes[i].appendDescriptor(stringBuilder);
605 }
606 stringBuilder.append(')');
607 returnType.appendDescriptor(stringBuilder);
608 return stringBuilder.toString();
609 }
610
611 /**
612 * Appends the descriptor corresponding to this type to the given string buffer.

Callers 4

getMethodTypeMethod · 0.95
getTypeMethod · 0.95
MethodMethod · 0.95
getMethodMethod · 0.95

Calls 4

appendDescriptorMethod · 0.95
appendMethod · 0.80
toStringMethod · 0.45
getReturnTypeMethod · 0.45

Tested by

no test coverage detected