|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.CodeVisitorSupport org.codehaus.groovy.ast.ClassCodeVisitorSupport org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor
public class ASTTransformationCollectorCodeVisitor extends ClassCodeVisitorSupport
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 Summary | |
ASTTransformationCollectorCodeVisitor(SourceUnit source, GroovyClassLoader transformLoader)
|
Method Summary | |
---|---|
protected SourceUnit
|
getSourceUnit()
|
void
|
visitAnnotations(AnnotatedNode node)
If the annotation is annotated with GroovyASTTransformation
the annotation is added to |
void
|
visitClass(ClassNode klassNode)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public ASTTransformationCollectorCodeVisitor(SourceUnit source, GroovyClassLoader transformLoader)
Method Detail |
---|
protected SourceUnit getSourceUnit()
public void visitAnnotations(AnnotatedNode node)
stageVisitors
at the appropriate processor visitor.
node
- the node to process
public void visitClass(ClassNode klassNode)
Groovy Documentation