< prev index next >

src/jdk.jdeps/share/classes/com/sun/tools/classfile/Descriptor.java

Print this page




 140                 case 'C':
 141                     type = "char";
 142                     break;
 143 
 144                 case 'D':
 145                     type = "double";
 146                     break;
 147 
 148                 case 'F':
 149                     type = "float";
 150                     break;
 151 
 152                 case 'I':
 153                     type = "int";
 154                     break;
 155 
 156                 case 'J':
 157                     type = "long";
 158                     break;
 159 

 160                 case 'L':
 161                     int sep = desc.indexOf(';', p);
 162                     if (sep == -1)
 163                         throw new InvalidDescriptor(desc, p - 1);
 164                     type = desc.substring(p, sep).replace('/', '.');
 165                     p = sep + 1;
 166                     break;
 167 
 168                 case 'S':
 169                     type = "short";
 170                     break;
 171 
 172                 case 'Z':
 173                     type = "boolean";
 174                     break;
 175 
 176                 case 'V':
 177                     type = "void";
 178                     break;
 179 


 140                 case 'C':
 141                     type = "char";
 142                     break;
 143 
 144                 case 'D':
 145                     type = "double";
 146                     break;
 147 
 148                 case 'F':
 149                     type = "float";
 150                     break;
 151 
 152                 case 'I':
 153                     type = "int";
 154                     break;
 155 
 156                 case 'J':
 157                     type = "long";
 158                     break;
 159 
 160                 case 'Q':
 161                 case 'L':
 162                     int sep = desc.indexOf(';', p);
 163                     if (sep == -1)
 164                         throw new InvalidDescriptor(desc, p - 1);
 165                     type = desc.substring(p, sep).replace('/', '.');
 166                     p = sep + 1;
 167                     break;
 168 
 169                 case 'S':
 170                     type = "short";
 171                     break;
 172 
 173                 case 'Z':
 174                     type = "boolean";
 175                     break;
 176 
 177                 case 'V':
 178                     type = "void";
 179                     break;
 180 
< prev index next >