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

Method getConstructorDescriptor

src/jvm/clojure/asm/Type.java:662–670  ·  view source on GitHub ↗

Returns the descriptor corresponding to the given constructor. @param constructor a Constructor object. @return the descriptor of the given constructor.

(final Constructor<?> constructor)

Source from the content-addressed store, hash-verified

660 * @return the descriptor of the given constructor.
661 */
662 public static String getConstructorDescriptor(final Constructor<?> constructor) {
663 StringBuilder stringBuilder = new StringBuilder();
664 stringBuilder.append('(');
665 Class<?>[] parameters = constructor.getParameterTypes();
666 for (int i = 0; i < parameters.length; ++i) {
667 appendDescriptor(stringBuilder, parameters[i]);
668 }
669 return stringBuilder.append(")V").toString();
670 }
671
672 /**
673 * Returns the descriptor corresponding to the given method.

Callers 4

emitMethod · 0.95
emitValueMethod · 0.95
getTypeMethod · 0.95
getMethodMethod · 0.95

Calls 3

appendDescriptorMethod · 0.95
appendMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected