Package org.codehaus.groovy.control.ClassNodeResolver

Examples of org.codehaus.groovy.control.ClassNodeResolver.LookupResult


            classNodeResolver.cacheClass(name, ClassNodeResolver.NO_CLASS);
            return false;
        }

        if (currentClass.getModule().hasPackageName() && name.indexOf('.') == -1) return false;
        LookupResult lr = null;
        lr = classNodeResolver.resolveName(name, compilationUnit);
        if (lr!=null) {
            if (lr.isSourceUnit()) {
                SourceUnit su = lr.getSourceUnit();
                currentClass.getCompileUnit().addClassNodeToCompile(type, su);
            } else {
                type.setRedirect(lr.getClassNode());
            }
            return true;
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of org.codehaus.groovy.control.ClassNodeResolver.LookupResult

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.