public class ASTTransformationCollectorCodeVisitor
extends ClassCodeVisitorSupport
Walks the AST and collects references to annotations that are annotated themselves by GroovyASTTransformation. Each such annotation is added.
This visitor is only intended to be executed once, during the CompilePhase.SEMANTIC_ANALYSIS phase of compilation.
| Constructor and description |
|---|
ASTTransformationCollectorCodeVisitor(SourceUnit source, GroovyClassLoader transformLoader) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected SourceUnit |
getSourceUnit() |
|
public void |
visitAnnotations(AnnotatedNode node) |
|
public void |
visitClass(ClassNode classNode) |
|
protected void |
visitStatementAnnotations(Statement statement)Collects AST transforms from statement-level annotations (e.g. annotations placed directly on for/while/do-while loop statements). |
Collects AST transforms from statement-level annotations (e.g. annotations placed
directly on for/while/do-while loop statements).
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.