|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.ast.CodeVisitorSupport
org.codehaus.groovy.ast.ClassCodeVisitorSupport
org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor
public class ASTTransformationCollectorCodeVisitor
This visitor walks the AST tree and collects references to Annotations that
are annotated themselves by GroovyASTTransformation
. Each such
annotation is added.
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 stageVisitors at the appropriate processor visitor. |
void |
visitClass(ClassNode klassNode)
Visit a ClassNode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ASTTransformationCollectorCodeVisitor(SourceUnit source, GroovyClassLoader transformLoader)
Method Detail |
---|
protected SourceUnit getSourceUnit()
getSourceUnit
in class ClassCodeVisitorSupport
public void visitClass(ClassNode klassNode)
GroovyClassVisitor
visitClass
in interface GroovyClassVisitor
visitClass
in class ClassCodeVisitorSupport
public void visitAnnotations(AnnotatedNode node)
GroovyASTTransformation
the annotation is added to stageVisitors
at the appropriate processor visitor.
visitAnnotations
in class ClassCodeVisitorSupport
node
- the node to process
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |