Returns the binary name of the class corresponding to this type. This method must not be used on method types. @return the binary name of the class corresponding to this type.
()
| 490 | * @return the binary name of the class corresponding to this type. |
| 491 | */ |
| 492 | public String getClassName() { |
| 493 | switch (sort) { |
| 494 | case VOID: |
| 495 | return "void"; |
| 496 | case BOOLEAN: |
| 497 | return "boolean"; |
| 498 | case CHAR: |
| 499 | return "char"; |
| 500 | case BYTE: |
| 501 | return "byte"; |
| 502 | case SHORT: |
| 503 | return "short"; |
| 504 | case INT: |
| 505 | return "int"; |
| 506 | case FLOAT: |
| 507 | return "float"; |
| 508 | case LONG: |
| 509 | return "long"; |
| 510 | case DOUBLE: |
| 511 | return "double"; |
| 512 | case ARRAY: |
| 513 | StringBuilder stringBuilder = new StringBuilder(getElementType().getClassName()); |
| 514 | for (int i = getDimensions(); i > 0; --i) { |
| 515 | stringBuilder.append("[]"); |
| 516 | } |
| 517 | return stringBuilder.toString(); |
| 518 | case OBJECT: |
| 519 | case INTERNAL: |
| 520 | return valueBuffer.substring(valueBegin, valueEnd).replace('/', '.'); |
| 521 | default: |
| 522 | throw new AssertionError(); |
| 523 | } |
| 524 | } |
| 525 | |
| 526 | /** |
| 527 | * Returns the internal name of the class corresponding to this object or array type. The internal |
no test coverage detected