Search in sources :

Example 1 with ReflectionModule

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

Aggregations

ReflectionModule (com.redhat.ceylon.model.loader.impl.reflect.model.ReflectionModule)1 LazyModule (com.redhat.ceylon.model.loader.model.LazyModule)1 Module (com.redhat.ceylon.model.typechecker.model.Module)1