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, getCategoryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLoggerFieldToClassgetCategoryName, isLoggingMethod, wrapLoggingMethodCallprotected AbstractLoggingStrategyV2(GroovyClassLoader loader)
protected AbstractLoggingStrategyV2()
public FieldNode addLoggerFieldToClass(ClassNode classNode, String fieldName, String categoryName)
LogASTTransformation.LoggingStrategyaddLoggerFieldToClass in interface LogASTTransformation.LoggingStrategyclassNode - the class that was originally annotated with the Log transformation.fieldName - the name of the logger fieldcategoryName - the name of the logging category