static String toClassName(String s){
  int i=s.indexOf('$');
  if (i > 0)   s=s.substring(0,i);
  return s.replace("/",".");
}

static String toClassName ( String s ) { int i = s . indexOf ( '$' ) ; if ( i > 0 ) s = s . substring ( 0 , i ) ; return s . replace ( "/" , "." ) ; }
returns the class name for the given class file . in the case of inner classes then the enclosing class is returned in order to keep the rules simple .
