use of org.eclipse.ceylon.model.loader.impl.reflect.model.ReflectionModule in project ceylon by eclipse.
the class PhasedUnitsModuleManager method createModule.
@Override
protected Module createModule(List<String> moduleName, String version) {
String name = org.eclipse.ceylon.compiler.java.util.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;
}
use of org.eclipse.ceylon.model.loader.impl.reflect.model.ReflectionModule in project ceylon by eclipse.
the class RuntimeModuleManager method createModule.
@Override
protected Module createModule(List<String> moduleName, String version) {
Module module;
module = new ReflectionModule(this);
module.setName(moduleName);
module.setVersion(version);
if (module instanceof ReflectionModule)
setupIfJDKModule((LazyModule) module);
return module;
}
Aggregations