use of com.redhat.ceylon.model.loader.impl.reflect.model.ReflectionModule in project ceylon-compiler by ceylon.
the class CeylonDocModuleManager method createModule.
@Override
protected Module createModule(List<String> moduleName, String version) {
String name = Util.getName(moduleName);
// never create a reflection module for ceylon.language when we're documenting it
Module module;
if (name.equals(AbstractModelLoader.CEYLON_LANGUAGE) && isModuleLoadedFromSource(AbstractModelLoader.CEYLON_LANGUAGE))
module = new Module();
else
module = new ReflectionModule(this);
module.setName(moduleName);
module.setVersion(version);
if (module instanceof ReflectionModule)
setupIfJDKModule((LazyModule) module);
return module;
}
Aggregations