Package com.redhat.ceylon.compiler.loader

Examples of com.redhat.ceylon.compiler.loader.AbstractModelLoader


            }

            @Override
            public void finished(TaskEvent e) {
                if(e.getKind() == Kind.ENTER){
                    AbstractModelLoader modelLoader = CeylonModelLoader.instance(context2);
                    Modules modules = LanguageCompiler.getCeylonContextInstance(context2).getModules();
                    // now see if we can find our declarations
                    compareDeclarations(modelCompare, decls, modelLoader, modules);
                }
            }
View Full Code Here


            }

            @Override
            public void finished(TaskEvent e) {
                if(e.getKind() == Kind.ENTER){
                    AbstractModelLoader modelLoader = CeylonModelLoader.instance(context2);
                    Modules modules = LanguageCompiler.getCeylonContextInstance(context2).getModules();
                    // now see if we can find our declarations
                    compareDeclarations(modelCompare, decls, modelLoader, modules);
                }
            }
View Full Code Here

    }

    private Package findPackageInModule(LazyModule module, String name) {
        if(module.containsPackage(name)){
            // first try the already loaded packages from that module
            AbstractModelLoader modelLoader = getModelLoader();
            synchronized(modelLoader.getLock()){
                for(Package pkg : module.getPackages()){
                    if(pkg.getNameAsString().equals(name))
                        return pkg;
                }
                // create/load a new one
View Full Code Here

    private Options options;
    private JavaFileManager fileManager;
    protected final Map<String,Boolean> packageExistence = new HashMap<String,Boolean>();
   
    public static AbstractModelLoader instance(Context context) {
        AbstractModelLoader instance = context.get(AbstractModelLoader.class);
        if (instance == null) {
            ModelLoaderFactory factory = context.get(ModelLoaderFactory.class);
            if (factory != null) {
                instance = factory.createModelLoader(context);
            }
View Full Code Here

    }
   
    @Override
    public List<Package> getPackages() {
        // make sure we're complete
        AbstractModelLoader modelLoader = getModelLoader();
        if(!packagesLoaded){
            synchronized(modelLoader.getLock()){
                if(!packagesLoaded){
                    String name = getNameAsString();
                    for(String pkg : jarPackages){
                        // special case for the language module to hide stuff
                        if(!name.equals(AbstractModelLoader.CEYLON_LANGUAGE) || pkg.startsWith(AbstractModelLoader.CEYLON_LANGUAGE))
                            modelLoader.findOrCreatePackage(this, pkg);
                    }
                    packagesLoaded = true;
                }
            }
        }
View Full Code Here

TOP

Related Classes of com.redhat.ceylon.compiler.loader.AbstractModelLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.