public static class Log4j.Log4jLoggingStrategy extends java.lang.Object implements LogASTTransformation.LoggingStrategy
| Constructor and Description |
|---|
Log4jLoggingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
FieldNode |
addLoggerFieldToClass(ClassNode classNode,
java.lang.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(java.lang.String methodName) |
Expression |
wrapLoggingMethodCall(Expression logVariable,
java.lang.String methodName,
Expression originalExpression) |
public FieldNode addLoggerFieldToClass(ClassNode classNode, java.lang.String logFieldName)
LogASTTransformation.LoggingStrategyaddLoggerFieldToClass in interface LogASTTransformation.LoggingStrategyclassNode - the class that was originally annotated with the Log transformation.logFieldName - the name of the logger fieldpublic boolean isLoggingMethod(java.lang.String methodName)
isLoggingMethod in interface LogASTTransformation.LoggingStrategypublic Expression wrapLoggingMethodCall(Expression logVariable, java.lang.String methodName, Expression originalExpression)
wrapLoggingMethodCall in interface LogASTTransformation.LoggingStrategy