@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 |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
setCompilationUnit(CompilationUnit compilationUnit) |
|
public Expression |
transform(Expression exp) |
|
public void |
visit(ASTNode[] nodes, SourceUnit sourceUnit) |
|
public void |
visitClass(ClassNode node) |
Methods inherited from class | Name |
---|---|
class AbstractASTTransformation |
addError, checkPropertyList, checkPropertyList, checkPropertyList, deemedInternalName, getAnnotationName, getMemberClassList, getMemberClassValue, getMemberClassValue, getMemberIntValue, getMemberStringList, getMemberStringValue, getMemberStringValue, getMemberValue, hasAnnotation, memberHasValue, shouldSkip, shouldSkip, shouldSkipOnDescriptorUndefinedAware, shouldSkipUndefinedAware, shouldSkipUndefinedAware, tokenize |
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.