org.jboss.aop.instrument
Class MethodExecutionTransformer

java.lang.Object
  extended byorg.jboss.aop.instrument.MethodExecutionTransformer

public class MethodExecutionTransformer
extends Object

Comment

Version:
$Revision: 1.28 $
Author:
Bill Burke

Constructor Summary
MethodExecutionTransformer(Instrumentor instrumentor)
           
 
Method Summary
static void addSetArguments(javassist.ClassPool pool, javassist.CtClass invocation, javassist.CtClass[] params)
           
protected  String createOptimizedInvocationClass(javassist.CtClass clazz, javassist.CtMethod method)
           
static String getMethodInfoFieldName(String methodName, long methodHash)
           
static String getOptimizedInvocationClassName(javassist.CtClass clazz, javassist.CtMethod method)
           
static String getOptimizedInvocationClassName(Method method)
           
 void instrument(javassist.CtClass clazz, ClassAdvisor advisor)
           
static String setArguments(javassist.CtClass[] params)
           
 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
 

Constructor Detail

MethodExecutionTransformer

public MethodExecutionTransformer(Instrumentor instrumentor)
Method Detail

getMethodInfoFieldName

public static String getMethodInfoFieldName(String methodName,
                                            long methodHash)

getOptimizedInvocationClassName

public static String getOptimizedInvocationClassName(javassist.CtClass clazz,
                                                     javassist.CtMethod method)
                                              throws Exception
Throws:
Exception

getOptimizedInvocationClassName

public static String getOptimizedInvocationClassName(Method method)
                                              throws Exception
Throws:
Exception

createOptimizedInvocationClass

protected String createOptimizedInvocationClass(javassist.CtClass clazz,
                                                javassist.CtMethod method)
                                         throws Exception
Throws:
Exception

instrument

public void instrument(javassist.CtClass clazz,
                       ClassAdvisor advisor)
                throws Exception
Throws:
Exception

wrap

public void wrap(javassist.CtClass clazz,
                 Collection methodInfos)
          throws Exception
Wraps the method executions contained in methodInfos.

Parameters:
clazz - the class being instrumented.
Throws:
Exception

unwrap

public void unwrap(javassist.CtClass clazz,
                   Collection methodInfos)
            throws Exception
Unwraps the method executions contained in methodInfos.

Parameters:
clazz - the class being instrumented.
Throws:
Exception

setArguments

public static String setArguments(javassist.CtClass[] params)
                           throws Exception
Throws:
Exception

addSetArguments

public static void addSetArguments(javassist.ClassPool pool,
                                   javassist.CtClass invocation,
                                   javassist.CtClass[] params)
                            throws Exception
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.