static final int fromType(String type,ConstantPool pool){
  if (type.length() == 1) {
switch (type.charAt(0)) {
case 'B':
case 'C':
case 'S':
case 'Z':
case 'I':
      return INTEGER;
case 'D':
    return DOUBLE;
case 'F':
  return FLOAT;
case 'J':
return LONG;
default :
throw new IllegalArgumentException("bad type");
}
}
return TypeInfo.OBJECT(type,pool);
}

static final int fromType ( String type , ConstantPool pool ) { if ( type . length ( ) == 1 ) { switch ( type . charAt ( 0 ) ) { case 'B' : case 'C' : case 'S' : case 'Z' : case 'I' : return INTEGER ; case 'D' : return DOUBLE ; case 'F' : return FLOAT ; case 'J' : return LONG ; default : throw new IllegalArgumentException ( "bad type" ) ; } } return TypeInfo . OBJECT ( type , pool ) ; }
create type information from an internal type .
