Package org.codehaus.groovy.control

Examples of org.codehaus.groovy.control.ResolveVisitor$ConstructedClassWithPackage


    private class JavaResolverOperation
        extends PrimaryClassNodeOperation
    {
        public void call(final SourceUnit source, final GeneratorContext context, final ClassNode node) throws CompilationFailedException {
            if (haveJavaSources()) {
                ResolveVisitor v = new JavaAwareResolveVisitor(JavaStubCompilationUnit.this);
                v.startResolving(node, source);
            }
        }
View Full Code Here


                ClassNode.EMPTY_ARRAY,
                EmptyStatement.INSTANCE
        );
        dummyMN.setGenericsTypes(mn.getGenericsTypes());
        dummyClass.addMethod(dummyMN);
        ResolveVisitor visitor = new ResolveVisitor(compilationUnit) {
            @Override
            protected void addError(final String msg, final ASTNode expr) {
                sourceUnit.addError(new IncorrectTypeHintException(mn, msg, usage.getLineNumber(), usage.getColumnNumber()));
            }
        };
        visitor.startResolving(dummyClass, sourceUnit);
        return dummyMN.getReturnType();
    }
View Full Code Here

TOP

Related Classes of org.codehaus.groovy.control.ResolveVisitor$ConstructedClassWithPackage

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.