Package com.redhat.ceylon.compiler.loader

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


        @Override
        public Declaration getDeclaration(Module module, String pkg, String name, Scope scope) {
            Class klass = classes.get(name);
            if(klass == null)
                throw new ModelResolutionException("Unknown type: "+name);
            return klass;
        }
View Full Code Here


        Constructor<?>[] directConstructors;
        try{
            directMethods = klass.getDeclaredMethods();
            directConstructors = klass.getDeclaredConstructors();
        }catch(NoClassDefFoundError x){
            throw new ModelResolutionException("Failed to load methods in "+getQualifiedName(), x);
        }
        methods = new ArrayList<MethodMirror>(directMethods.length + directConstructors.length);
        for(Method directMethod : directMethods){
            // Note: unlike JavacClass and JDTClass we return private members, because the runtime manager
            // depends on them
View Full Code Here

                    }
                }
            }
        }
        // in every other case, rethrow as a ModelLoaderExceptions
        throw new ModelResolutionException("Failed to determine if "+method.name.toString()+" is overriding a super method", x);
    }
View Full Code Here

    @Override
    protected Module findModuleForClassMirror(ClassMirror classMirror) {
        Class<?> klass = ((ReflectionClass)classMirror).klass;
        Module ret = findModuleForClass(klass);
        if(ret == null)
            throw new ModelResolutionException("Could not find module for class "+klass);
        return ret;
    }
View Full Code Here

                    int tries = MAX_JBOSS_MODULES_WAITS;
                    while(!classLoaders.containsValue(cl)){
                        try {
                            lock.wait(JBOSS_MODULES_TIMEOUT);
                        } catch (InterruptedException e) {
                            throw new ModelResolutionException(e);
                        }
                        if(tries-- < 0)
                            throw new ModelResolutionException("Failed to find registered classloader for "+klass);
                    }
                    ret = moduleCache.get(cacheKey);
                }
            }
            return ret;
View Full Code Here

    @Override
    protected Runnable makeModelErrorReporter(final String message) {
        return new Runnable(){
            @Override
            public void run() {
                throw new ModelResolutionException(message);
            }
        };
    }
View Full Code Here

TOP

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

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.