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

Method getDescriptor

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

Returns the descriptor corresponding to this type. @return the descriptor corresponding to this type.

()

Source from the content-addressed store, hash-verified

577 * @return the descriptor corresponding to this type.
578 */
579 public String getDescriptor() {
580 if (sort == OBJECT) {
581 return valueBuffer.substring(valueBegin - 1, valueEnd + 1);
582 } else if (sort == INTERNAL) {
583 StringBuilder stringBuilder = new StringBuilder();
584 stringBuilder.append('L');
585 stringBuilder.append(valueBuffer, valueBegin, valueEnd);
586 stringBuilder.append(';');
587 return stringBuilder.toString();
588 } else {
589 return valueBuffer.substring(valueBegin, valueEnd);
590 }
591 }
592
593 /**
594 * Returns the descriptor corresponding to the given argument and return types.

Callers 15

emitMethod · 0.95
doEmitMethod · 0.95
addConstantMethod · 0.95
getTypeMethod · 0.95
getArgumentTypesMethod · 0.95
getReturnTypeMethod · 0.95
toStringMethod · 0.95
compileMethod · 0.45
emitValueMethod · 0.45
doEmitStaticMethod · 0.45

Calls 3

appendDescriptorMethod · 0.95
appendMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected