public static Type toBaseType(String internal){
  if (internal.charAt(0) == '[') {
    internal=internal.substring(internal.lastIndexOf('[') + 1,internal.length());
  }
  if (internal.charAt(internal.length() - 1) == ';') {
    internal=internal.substring(0,internal.length() - 1);
    if (internal.charAt(0) == 'L') {
      internal=internal.substring(1,internal.length());
    }
    internal=toQualifiedName(internal);
    return RefType.v(internal);
  }
switch (internal.charAt(0)) {
case 'Z':
    return BooleanType.v();
case 'B':
  return ByteType.v();
case 'C':
return CharType.v();
case 'S':
return ShortType.v();
case 'I':
return IntType.v();
case 'F':
return FloatType.v();
case 'J':
return LongType.v();
case 'D':
return DoubleType.v();
default :
internal=toQualifiedName(internal);
return RefType.v(internal);
}
}

public static Type toBaseType ( String internal ) { if ( internal . charAt ( 0 ) == '[' ) { internal = internal . substring ( internal . lastIndexOf ( '[' ) + 1 , internal . length ( ) ) ; } if ( internal . charAt ( internal . length ( ) - 1 ) == ';' ) { internal = internal . substring ( 0 , internal . length ( ) - 1 ) ; if ( internal . charAt ( 0 ) == 'L' ) { internal = internal . substring ( 1 , internal . length ( ) ) ; } internal = toQualifiedName ( internal ) ; return RefType . v ( internal ) ; } switch ( internal . charAt ( 0 ) ) { case 'Z' : return BooleanType . v ( ) ; case 'B' : return ByteType . v ( ) ; case 'C' : return CharType . v ( ) ; case 'S' : return ShortType . v ( ) ; case 'I' : return IntType . v ( ) ; case 'F' : return FloatType . v ( ) ; case 'J' : return LongType . v ( ) ; case 'D' : return DoubleType . v ( ) ; default : internal = toQualifiedName ( internal ) ; return RefType . v ( internal ) ; } }
converts an internal class name to a type .
