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

Method appendDescriptor

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

Appends the descriptor corresponding to this type to the given string buffer. @param stringBuilder the string builder to which the descriptor must be appended.

(final StringBuilder stringBuilder)

Source from the content-addressed store, hash-verified

614 * @param stringBuilder the string builder to which the descriptor must be appended.
615 */
616 private void appendDescriptor(final StringBuilder stringBuilder) {
617 if (sort == OBJECT) {
618 stringBuilder.append(valueBuffer, valueBegin - 1, valueEnd + 1);
619 } else if (sort == INTERNAL) {
620 stringBuilder.append('L');
621 stringBuilder.append(valueBuffer, valueBegin, valueEnd);
622 stringBuilder.append(';');
623 } else {
624 stringBuilder.append(valueBuffer, valueBegin, valueEnd);
625 }
626 }
627
628 // -----------------------------------------------------------------------------------------------
629 // Direct conversion from classes to type descriptors,

Callers 3

getMethodDescriptorMethod · 0.95
getDescriptorMethod · 0.95

Calls 4

appendMethod · 0.80
isPrimitiveMethod · 0.80
getNameMethod · 0.65
lengthMethod · 0.65

Tested by

no test coverage detected