private String resolve(String className){
  String qualifiedName;
  Class<?> resolved=null;
  if (pkgName.isEmpty()) {
    qualifiedName=className;
    resolved=loadClass(qualifiedName);
    if (resolved == null) {
      qualifiedName="java.lang." + className;
      resolved=loadClass(qualifiedName);
    }
  }
 else {
    qualifiedName=pkgName + "." + className;
    resolved=loadClass(qualifiedName);
    if (resolved == null) {
      qualifiedName=className;
      resolved=loadClass(qualifiedName);
    }
  }
  if (resolved == null) {
    for (    String declName : imports) {
      qualifiedName=mergeImport(declName,className);
      if (qualifiedName != null) {
        return qualifiedName;
      }
    }
    return className;
  }
  return qualifiedName;
}

private String resolve ( String className ) { String qualifiedName ; Class < ? > resolved = null ; if ( pkgName . isEmpty ( ) ) { qualifiedName = className ; resolved = loadClass ( qualifiedName ) ; if ( resolved == null ) { qualifiedName = "java.lang." + className ; resolved = loadClass ( qualifiedName ) ; } } else { qualifiedName = pkgName + "." + className ; resolved = loadClass ( qualifiedName ) ; if ( resolved == null ) { qualifiedName = className ; resolved = loadClass ( qualifiedName ) ; } } if ( resolved == null ) { for ( String declName : imports ) { qualifiedName = mergeImport ( declName , className ) ; if ( qualifiedName != null ) { return qualifiedName ; } } return className ; } return qualifiedName ; }
finds the fully qualified name of the class with the given name .
