public void setLocation(Location location, String moduleName, Iterable<? extends Path> paths) {
LocationWrapper wrapper = null;
LocationContainer container = this.containers.get(location);
if (container != null) {
wrapper = container.get(moduleName);
} else {
container = new LocationContainer(location);
this.containers.put(location, container);
}
if (wrapper == null) {
if (moduleName.equals("")) {
wrapper = new LocationWrapper(location, location.isOutputLocation(), paths);
} else {
wrapper = new ModuleLocationWrapper(location, moduleName, location.isOutputLocation(), paths);
for (Path path : paths) {
container.put(path, wrapper);
}
}
} else {
wrapper.setPaths(paths);
}
container.put(moduleName, wrapper);
}
public Iterable<Set<Location>> listLocationsForModules(Location location) {