this.addAstInfo(indexKey.key, true);
} catch (Exception e) {
Log.log(e);
}
obj = new CompleteIndexValue();
} else {
if (DEBUG) {
System.out.println("Removing (file does not exist or is not a valid source module): "
+ indexKey.key.name);
}
this.removeInfoFromModule(indexKey.key.name, true);
return;
}
}
long lastModified = indexKey.key.file.lastModified();
if (lastModified == 0 || !canAddAstInfoFor) {
//File no longer exists or is not a valid source module.
if (DEBUG) {
System.out.println("Removing (file no longer exists or is not a valid source module): "
+ indexKey.key.name + " indexKey.key.file: " + indexKey.key.file + " exists: "
+ indexKey.key.file.exists());
}
this.removeInfoFromModule(indexKey.key.name, true);
return;
}
//if it got here, it must be a valid source module!
if (obj.entries != null) {
if (lastModified != indexKey.lastModified) {
obj = new CompleteIndexValue();
try {
//Recreate the entry on the new time (recreate the entry in the index and in the actual AST)
this.addAstInfo(indexKey.key, true);
} catch (Exception e) {
Log.log(e);