[Java] Class GrabAnnotationTransformation
- groovy.grape.GrabAnnotationTransformation
- All Implemented Interfaces and Traits:
- ASTTransformation, CompilationUnitAware
@GroovyASTTransformation(phase=CompilePhase.CONVERSION) public class GrabAnnotationTransformation extends ClassCodeVisitorSupport
Transformation for declarative dependency management.
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
SourceUnit |
getSourceUnit() | |
void |
setCompilationUnit(CompilationUnit compilationUnit) | |
void |
visit(ASTNode[] nodes, SourceUnit source) | |
void |
visitAnnotations(AnnotatedNode node) Adds the annotation to the internal target list if a match is found. |
Inherited Methods Summary
Method Detail
public SourceUnit getSourceUnit()
public void setCompilationUnit(CompilationUnit compilationUnit)
public void visit(ASTNode[] nodes, SourceUnit source)
public void visitAnnotations(AnnotatedNode node)
Adds the annotation to the internal target list if a match is found.
- Parameters:
-
node
- the AST node we are processing
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/groovy/grape/GrabAnnotationTransformation.html