[Java] Class ASTTransformationCollectorCodeVisitor
- org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor
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.
- Authors:
- Danno Ferrin (shemnon)
- Roshan Dawrani (roshandawrani)
- Jochen Theodorou (blackdrag)
Constructor Summary
Constructor and description |
---|
ASTTransformationCollectorCodeVisitor
(SourceUnit source, GroovyClassLoader transformLoader) |
Methods Summary
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) |
Inherited Methods Summary
Constructor Detail
public ASTTransformationCollectorCodeVisitor(SourceUnit source, GroovyClassLoader transformLoader)
Method Detail
protected SourceUnit getSourceUnit()
public void visitAnnotations(AnnotatedNode node)
If the annotation is annotated with GroovyASTTransformation the annotation is added to stageVisitors
at the appropriate processor visitor.
- Parameters:
-
node
- the node to process
public void visitClass(ClassNode klassNode)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/transform/ASTTransformationCollectorCodeVisitor.html