@GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS) public class LogASTTransformation extends AbstractASTTransformation implements CompilationUnitAware
This class provides an AST Transformation to add a log field to a class.
| Modifiers | Name | Description | 
|---|---|---|
| static class | LogASTTransformation.AbstractLoggingStrategy | |
| static class | LogASTTransformation.AbstractLoggingStrategyV2 | |
| interface | LogASTTransformation.LoggingStrategy | A LoggingStrategy defines how to wire a new logger instance into an existing class. | 
| interface | LogASTTransformation.LoggingStrategyV2 | A LoggingStrategy defines how to wire a new logger instance into an existing class. | 
| Modifiers | Name | Description | 
|---|---|---|
| static String | DEFAULT_ACCESS_MODIFIER | |
| static String | DEFAULT_CATEGORY_NAME | This is just a dummy value used because String annotations values can not be null. | 
| Fields inherited from class | Fields | 
|---|---|
| class AbstractASTTransformation | RETENTION_CLASSNODE, sourceUnit | 
| Type Params | Return Type | Name and description | 
|---|---|---|
|  | protected SourceUnit | getSourceUnit() | 
|  | public void | setCompilationUnit(CompilationUnit compilationUnit) | 
|  | public Expression | transform(Expression exp) | 
|  | public void | visit(ASTNode[] nodes, SourceUnit sourceUnit) | 
|  | public void | visitClass(ClassNode node) | 
This is just a dummy value used because String annotations values can not be null. It will be replaced by the fully qualified class name of the annotated class.