if (fullyQualifiedClassName.startsWith("quorum/")) {
// Search project files.
for (int i = 0; i < projectFiles.length; i++) {
FileObject file = projectFiles[i];
if (file.getExt().equals("quorum")) {
CompilerFileDescriptor fd = compiler.getFileDescriptor(file);
CompilerClassDescriptor cd = fd.getClass(className);
if (cd != null && cd.getName().equals(className)) {
return file;
}
}
}
// If we make it here, we found nothing, so check the global scope.
Iterator<CompilerFileDescriptor> allFiles = compiler.getFileDescriptors();
while (allFiles.hasNext()) {
CompilerFileDescriptor fd = allFiles.next();
CompilerClassDescriptor cd = fd.getClass(className);
if (cd != null && cd.getName().equals(className)) {
return FileUtil.toFileObject(fd.getFile());
}
}
}
// No results