Examples of GroovyClassVisitor


Examples of org.codehaus.groovy.ast.GroovyClassVisitor

        }
        if (!rootActiveObject && actorGroupName.length() != 0) {
            ASTUtils.addError("Active object's actor group can only be specified at the top of the active object hierarchy. Apparently a superclass of this class is also an active object.", classNode, source);
        }

        final GroovyClassVisitor transformer = new MyClassCodeExpressionTransformer(source, actorFieldName, actorGroupName);
        transformer.visitClass(classNode);
    }
View Full Code Here

Examples of org.codehaus.groovy.ast.GroovyClassVisitor

@GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS)
public class SearchDslAstTransformation implements ASTTransformation {


    @Override public void visit(ASTNode[] nodes, final SourceUnit source) {
        GroovyClassVisitor methodVisitor = new ConfigClosureFinder(source);
       
        for(ClassNode cn : source.getAST().getClasses()){
            methodVisitor.visitClass(cn);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.