static final int fromType ( String type , ConstantPool pool ) { if ( type . length ( ) == 1 ) { switch ( type . charAt ( 0 ) ) { case ' ' : // sbyte case ' ' : // unicode char case ' ' : // short case ' ' : // boolean case ' ' : // all of the above are verified as integers return INTEGER ; case ' ' : return DOUBLE ; case ' ' : return FLOAT ; case ' ' : return LONG ; default : throw new IllegalArgumentException ( "bad type" ) ; } } return TypeInfo . OBJECT ( type , pool ) ; }
Create type information from an internal type .