public class GrabAnnotationTransformation
extends ClassCodeVisitorSupport
implements ASTTransformation, CompilationUnitAware
Transformation for declarative dependency management.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public SourceUnit |
getSourceUnit()* Provides access to the SourceUnit for error reporting during visitation. * Implementations must override this method. * *
|
|
public void |
setCompilationUnit(CompilationUnit compilationUnit)* Sets the compilation unit currently applying this transformation. * *
|
|
public void |
visit(ASTNode[] nodes, SourceUnit source)Visits the source module and processes supported Grape annotations. |
|
public void |
visitAnnotations(AnnotatedNode node)Adds the annotation to the internal target list if a match is found. |
* Provides access to the SourceUnit for error reporting during visitation. * Implementations must override this method. * *
* Sets the compilation unit currently applying this transformation. * *
unit - the active compilation unitVisits the source module and processes supported Grape annotations.
nodes - the AST nodes to processsource - the source unit being transformedAdds the annotation to the internal target list if a match is found.
node - the AST node we are processing