[Java] Class LogASTTransformation
- org.codehaus.groovy.transform.LogASTTransformation
- All Implemented Interfaces and Traits:
- CompilationUnitAware
@GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS) public class LogASTTransformation extends AbstractASTTransformation
This class provides an AST Transformation to add a log field to a class.
- Authors:
- Guillaume Laforge
- Jochen Theodorou
- Dinko Srkoc
- Hamlet D'Arcy
- Raffaele Cigni
- Alberto Vilches Raton
- Tomasz Bujok
- Martin Ghados
- Matthias Cullmann
Nested Class Summary
Modifiers | Name | Description |
---|---|---|
static class | LogASTTransformation.AbstractLoggingStrategy | |
interface | LogASTTransformation.LoggingStrategy | A LoggingStrategy defines how to wire a new logger instance into an existing class. |
Field Summary
Modifiers | Name | Description |
---|---|---|
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 |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
void |
setCompilationUnit(CompilationUnit unit) | |
void |
visit(ASTNode[] nodes, SourceUnit source) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class AbstractASTTransformation | addError, checkIncludeExclude, checkIncludeExclude, checkNotInterface, copyAnnotatedNodeAnnotations, deemedInternalName, getClassList, getMemberClassValue, getMemberClassValue, getMemberIntValue, getMemberList, getMemberStringValue, getMemberStringValue, getMemberValue, hasAnnotation, init, memberHasValue, nonGeneric, shouldSkip, shouldSkipOnDescriptor, tokenize |
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail
public static final String DEFAULT_CATEGORY_NAME
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.
Method Detail
public void setCompilationUnit(CompilationUnit unit)
public void visit(ASTNode[] nodes, SourceUnit source)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/transform/LogASTTransformation.html