public class InsertMethodCallLogProcessor extends AbstractLoggingProcessor
context| Constructor and Description |
|---|
InsertMethodCallLogProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getLoggerMessageString(javassist.CtMethod m,
java.lang.reflect.Method runtimeMethod,
LogThis annotation,
java.lang.String[] parameterNames,
javassist.CtField loggerField) |
protected java.lang.String[] |
getMethodVariableNames(javassist.CtMethod cm,
java.lang.reflect.Method method) |
protected void |
processClass(ByteCodeHelper helper,
javassist.CtClass ctClass,
java.lang.Class<?> clazz)
Processes the given class.
|
protected void |
processMethod(ByteCodeHelper helper,
javassist.CtClass ctClass,
java.lang.Class<?> clazz,
javassist.CtMethod m,
java.lang.reflect.Method runtimeMethod,
LogThis annotation) |
getLoggerFieldPrefix, getLoggerInitialization, getLoggerType, getLogMethodName, injectLoggerdoRun, init, runprotected void processClass(ByteCodeHelper helper, javassist.CtClass ctClass, java.lang.Class<?> clazz) throws javassist.CannotCompileException
AbstractClassModificationProcessorByteCodeHelper.edit(CtClass, Class) of the given helper if a class was edited. A call to ByteCodeHelper.commit() will
be done automatically.processClass in class AbstractClassModificationProcessorhelper - The ByteCodeHelper to be used.ctClass - The javassist CtClass to process.clazz - The corresponding Class.javassist.CannotCompileException - If the changes could not be compiled.protected void processMethod(ByteCodeHelper helper, javassist.CtClass ctClass, java.lang.Class<?> clazz, javassist.CtMethod m, java.lang.reflect.Method runtimeMethod, LogThis annotation) throws javassist.CannotCompileException
javassist.CannotCompileExceptionprotected java.lang.String getLoggerMessageString(javassist.CtMethod m,
java.lang.reflect.Method runtimeMethod,
LogThis annotation,
java.lang.String[] parameterNames,
javassist.CtField loggerField)
protected java.lang.String[] getMethodVariableNames(javassist.CtMethod cm,
java.lang.reflect.Method method)
Copyright © 2015. All Rights Reserved.