public static class Log.JavaUtilLoggingStrategy extends LogASTTransformation.AbstractLoggingStrategy
loader| Modifier | Constructor and Description |
|---|---|
protected |
Log.JavaUtilLoggingStrategy(GroovyClassLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
FieldNode |
addLoggerFieldToClass(ClassNode classNode,
String logFieldName)
In this method, you are given a ClassNode and a field name, and you must add a new Field
onto the class.
|
boolean |
isLoggingMethod(String methodName) |
Expression |
wrapLoggingMethodCall(Expression logVariable,
String methodName,
Expression originalExpression) |
classNodeprotected Log.JavaUtilLoggingStrategy(GroovyClassLoader loader)
public FieldNode addLoggerFieldToClass(ClassNode classNode, String logFieldName)
LogASTTransformation.LoggingStrategyclassNode - the class that was originally annotated with the Log transformation.logFieldName - the name of the logger fieldpublic boolean isLoggingMethod(String methodName)
public Expression wrapLoggingMethodCall(Expression logVariable, String methodName, Expression originalExpression)