This visitor walks the AST tree 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 SEMANTIC_ANALYSIS phase of compilation.
Constructor and description |
---|
ASTTransformationCollectorCodeVisitor
(SourceUnit source, GroovyClassLoader transformLoader) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected SourceUnit |
getSourceUnit() |
|
void |
visitAnnotations(AnnotatedNode node) If the annotation is annotated with GroovyASTTransformation the annotation is added to stageVisitors at the appropriate processor visitor. |
|
void |
visitClass(ClassNode klassNode) |
If the annotation is annotated with GroovyASTTransformation
the annotation is added to stageVisitors
at the appropriate processor visitor.
node
- the node to processCopyright © 2003-2019 The Apache Software Foundation. All rights reserved.