public abstract static class LogASTTransformation.AbstractLoggingStrategyV2 extends LogASTTransformation.AbstractLoggingStrategy implements LogASTTransformation.LoggingStrategyV2
loader
Modifier | Constructor and Description |
---|---|
protected |
AbstractLoggingStrategyV2() |
protected |
AbstractLoggingStrategyV2(GroovyClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
FieldNode |
addLoggerFieldToClass(ClassNode classNode,
String fieldName,
String categoryName)
In this method, you are given a ClassNode, a field name and a category name, and you must add a new Field
onto the class.
|
classNode, getCategoryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLoggerFieldToClass
getCategoryName, isLoggingMethod, wrapLoggingMethodCall
protected AbstractLoggingStrategyV2(GroovyClassLoader loader)
protected AbstractLoggingStrategyV2()
public FieldNode addLoggerFieldToClass(ClassNode classNode, String fieldName, String categoryName)
LogASTTransformation.LoggingStrategy
addLoggerFieldToClass
in interface LogASTTransformation.LoggingStrategy
classNode
- the class that was originally annotated with the Log transformation.fieldName
- the name of the logger fieldcategoryName
- the name of the logging category