|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.aop.instrument.MethodExecutionTransformer
Comment
| Nested Class Summary | |
protected class |
MethodExecutionTransformer.MethodTransformation
|
| Field Summary | |
protected Instrumentor |
instrumentor
|
static String |
METHOD_INFO_CLASS_NAME
|
| Constructor Summary | |
protected |
MethodExecutionTransformer(Instrumentor instrumentor)
|
| Method Summary | |
protected boolean |
addInfoAsWeakReference()
|
protected String |
addMethodInfoField(int modifiers,
javassist.CtClass addTo,
MethodExecutionTransformer.MethodTransformation trans)
Adds a MethodInfo field to the passed in class |
protected String |
addMethodInfoField(int modifiers,
javassist.CtClass addTo,
MethodExecutionTransformer.MethodTransformation trans,
javassist.CtField.Initializer init)
Adds a MethodInfo field to the passed in class |
protected JoinpointClassification[] |
classifyMethods(javassist.CtClass clazz,
ClassAdvisor advisor)
Classifies the method execution joinpoints. |
protected void |
copyAnnotations(javassist.CtMethod src,
javassist.CtMethod dest)
|
protected abstract void |
doWrap(MethodExecutionTransformer.MethodTransformation trans,
String methodInfoFieldName)
|
protected static String |
getAopReturnStr(boolean isVoid)
|
protected static String |
getAopReturnStr(javassist.CtMethod method)
|
protected JoinpointClassifier |
getClassifier()
|
static String |
getMethodInfoFieldName(String methodName,
long methodHash)
|
static String |
getMethodNameHash(String methodName,
long methodHash)
|
protected static String |
getReturnStr(boolean isVoid)
|
protected static String |
getReturnStr(javassist.CtMethod method)
|
protected static WrapperTransformer |
getWrapper()
|
void |
instrument(javassist.CtClass clazz,
ClassAdvisor advisor)
|
protected static String |
methodInfoFromWeakReference(String localName,
String methodInfoName)
|
protected abstract void |
transformMethod(MethodExecutionTransformer.MethodTransformation trans,
boolean wrap)
|
void |
unwrap(javassist.CtClass clazz,
Collection methodInfos)
Unwraps the method executions contained in methodInfos. |
void |
wrap(javassist.CtClass clazz,
Collection methodInfos)
Wraps the method executions contained in methodInfos. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String METHOD_INFO_CLASS_NAME
protected Instrumentor instrumentor
| Constructor Detail |
protected MethodExecutionTransformer(Instrumentor instrumentor)
| Method Detail |
protected static WrapperTransformer getWrapper()
protected JoinpointClassifier getClassifier()
protected String addMethodInfoField(int modifiers,
javassist.CtClass addTo,
MethodExecutionTransformer.MethodTransformation trans)
throws javassist.NotFoundException,
javassist.CannotCompileException
javassist.NotFoundException
javassist.CannotCompileException
protected String addMethodInfoField(int modifiers,
javassist.CtClass addTo,
MethodExecutionTransformer.MethodTransformation trans,
javassist.CtField.Initializer init)
throws javassist.NotFoundException,
javassist.CannotCompileException
javassist.NotFoundException
javassist.CannotCompileExceptionprotected boolean addInfoAsWeakReference()
public static String getMethodNameHash(String methodName,
long methodHash)
public static String getMethodInfoFieldName(String methodName,
long methodHash)
protected static String methodInfoFromWeakReference(String localName,
String methodInfoName)
protected JoinpointClassification[] classifyMethods(javassist.CtClass clazz,
ClassAdvisor advisor)
throws javassist.NotFoundException
clazz - the clazz whose methods will be classified.advisor - the advisor associated to clazz.
javassist.NotFoundException
public void instrument(javassist.CtClass clazz,
ClassAdvisor advisor)
throws javassist.NotFoundException,
javassist.CannotCompileException
javassist.NotFoundException
javassist.CannotCompileException
public void wrap(javassist.CtClass clazz,
Collection methodInfos)
throws Exception
methodInfos.
clazz - the class being instrumented.
Exception
public void unwrap(javassist.CtClass clazz,
Collection methodInfos)
throws Exception
methodInfos.
clazz - the class being instrumented.
Exception
protected void copyAnnotations(javassist.CtMethod src,
javassist.CtMethod dest)
protected static String getAopReturnStr(javassist.CtMethod method)
throws javassist.NotFoundException
javassist.NotFoundException
protected static String getAopReturnStr(boolean isVoid)
throws javassist.NotFoundException
javassist.NotFoundException
protected static String getReturnStr(javassist.CtMethod method)
throws javassist.NotFoundException
javassist.NotFoundException
protected static String getReturnStr(boolean isVoid)
throws javassist.NotFoundException
javassist.NotFoundException
protected abstract void transformMethod(MethodExecutionTransformer.MethodTransformation trans,
boolean wrap)
throws javassist.CannotCompileException,
javassist.NotFoundException
javassist.CannotCompileException
javassist.NotFoundException
protected abstract void doWrap(MethodExecutionTransformer.MethodTransformation trans,
String methodInfoFieldName)
throws javassist.NotFoundException,
Exception
javassist.NotFoundException
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||