private static String typeSignatureType()

in remoting/ide/api/src/org/netbeans/modules/jackpot30/remoting/api/Utilities.java [120:166]


    private static String typeSignatureType (final String jvmTypeId, final int[] pos) {
        char c = getChar(jvmTypeId, pos[0]++);
        switch (c) {
            case 'B': return "byte";
            case 'C': return "char";
            case 'D': return "double";
            case 'F': return "float";
            case 'I': return "int";
            case 'J': return "long";
            case 'S': return "short";
            case 'V': return "void";
            case 'Z': return "boolean";
            case 'L': {
                StringBuilder builder = new StringBuilder ();
                c = getChar(jvmTypeId, pos[0]++);
                while (c != ';') {
                    if (c == '/' || c == '$') {
                        if (generateSimpleNames) builder.delete(0, builder.length());
                        else builder.append('.');
                    } else {
                        builder.append(c);
                    }

                    if (c=='<') {
                        pos[0]--;
                        typeArgumentsList (jvmTypeId, pos, builder);
                        builder.append(">");
                    }
                    c = getChar(jvmTypeId, pos[0]++);
                }
                return builder.toString();
            }
            case 'T': {
                StringBuilder builder = new StringBuilder ();
                c = getChar(jvmTypeId, pos[0]++);
                while (c != ';') {
                    builder.append(c);
                    c = getChar(jvmTypeId, pos[0]++);
                }
                return builder.toString();
            }
            case '[':
                return typeSignatureType (jvmTypeId, pos) + "[]";
            default:
                return "<unknown-type>";
        }
    }