|
Groovy 2.2.0 | |||||||
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 Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, 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)
Copyright © 2003-2013 The Codehaus. All rights reserved.