[Java] Class ASTTransformationCollectorCodeVisitor
- org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor
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 Summary
Constructor and description |
---|
ASTTransformationCollectorCodeVisitor
(SourceUnit source, GroovyClassLoader transformLoader) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
protected SourceUnit |
getSourceUnit() | |
public void |
visitAnnotations(AnnotatedNode node) | |
public void |
visitClass(ClassNode classNode) |
Inherited Methods Summary
Constructor Detail
public ASTTransformationCollectorCodeVisitor(SourceUnit source, GroovyClassLoader transformLoader)
Method Detail
@Override protected SourceUnit getSourceUnit()
@Override public void visitAnnotations(AnnotatedNode node)
@Override public void visitClass(ClassNode classNode)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/transform/ASTTransformationCollectorCodeVisitor.html