protected CtClass createCtClass(String classname,boolean useCache){
  if (classname.charAt(0) == '[')   classname=Descriptor.toClassName(classname);
  if (classname.endsWith("[]")) {
    String base=classname.substring(0,classname.indexOf('['));
    if ((!useCache || getCached(base) == null) && find(base) == null)     return null;
 else     return new CtArray(classname,this);
  }
 else   if (find(classname) == null)   return null;
 else   return new CtClassType(classname,this);
}

protected CtClass createCtClass ( String classname , boolean useCache ) { if ( classname . charAt ( 0 ) == '[' ) classname = Descriptor . toClassName ( classname ) ; if ( classname . endsWith ( "[]" ) ) { String base = classname . substring ( 0 , classname . indexOf ( '[' ) ) ; if ( ( ! useCache || getCached ( base ) == null ) && find ( base ) == null ) return null ; else return new CtArray ( classname , this ) ; } else if ( find ( classname ) == null ) return null ; else return new CtClassType ( classname , this ) ; }
creates a ctclass object representing the specified class . it first examines whether or not the corresponding class file exists . if yes , it creates a ctclass object .
