< prev index next >

src/jdk.jdeps/share/classes/com/sun/tools/jdeprscan/Pretty.java

Print this page

132                 name = "short";
133                 break;
134             case 'C':
135                 name = "char";
136                 break;
137             case 'I':
138                 name = "int";
139                 break;
140             case 'J':
141                 name = "long";
142                 break;
143             case 'F':
144                 name = "float";
145                 break;
146             case 'D':
147                 name = "double";
148                 break;
149             case 'V':
150                 name = "void";
151                 break;

152             case 'L':
153                 int semi = desc.indexOf(';', pos);
154                 if (semi == -1) {
155                     return null;
156                 }
157                 name = unslashify(desc.substring(pos, semi));
158                 pos = semi + 1;
159                 break;
160             default:
161                 return null;
162         }
163 
164         StringBuilder sb = new StringBuilder(name);
165         for (int i = 0; i < dims; i++) {
166             sb.append("[]");
167         }
168         pos_inout[0] = pos;
169         return sb.toString();
170     }
171 

132                 name = "short";
133                 break;
134             case 'C':
135                 name = "char";
136                 break;
137             case 'I':
138                 name = "int";
139                 break;
140             case 'J':
141                 name = "long";
142                 break;
143             case 'F':
144                 name = "float";
145                 break;
146             case 'D':
147                 name = "double";
148                 break;
149             case 'V':
150                 name = "void";
151                 break;
152             case 'Q':
153             case 'L':
154                 int semi = desc.indexOf(';', pos);
155                 if (semi == -1) {
156                     return null;
157                 }
158                 name = unslashify(desc.substring(pos, semi));
159                 pos = semi + 1;
160                 break;
161             default:
162                 return null;
163         }
164 
165         StringBuilder sb = new StringBuilder(name);
166         for (int i = 0; i < dims; i++) {
167             sb.append("[]");
168         }
169         pos_inout[0] = pos;
170         return sb.toString();
171     }
172 
< prev index next >