Search in sources :

Example 1 with ReflectionModule

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;
}
Also used : ReflectionModule(org.eclipse.ceylon.model.loader.impl.reflect.model.ReflectionModule) LazyModule(org.eclipse.ceylon.model.loader.model.LazyModule) ReflectionModule(org.eclipse.ceylon.model.loader.impl.reflect.model.ReflectionModule) Module(org.eclipse.ceylon.model.typechecker.model.Module) LazyModule(org.eclipse.ceylon.model.loader.model.LazyModule)

Example 2 with ReflectionModule

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;
}
Also used : ReflectionModule(org.eclipse.ceylon.model.loader.impl.reflect.model.ReflectionModule) LazyModule(org.eclipse.ceylon.model.loader.model.LazyModule) ReflectionModule(org.eclipse.ceylon.model.loader.impl.reflect.model.ReflectionModule) Module(org.eclipse.ceylon.model.typechecker.model.Module) LazyModule(org.eclipse.ceylon.model.loader.model.LazyModule)

Aggregations

ReflectionModule (org.eclipse.ceylon.model.loader.impl.reflect.model.ReflectionModule)2 LazyModule (org.eclipse.ceylon.model.loader.model.LazyModule)2 Module (org.eclipse.ceylon.model.typechecker.model.Module)2