| org.codehaus.aspectwerkz.transform.inlining.weaver.MethodExecutionVisitor
MethodExecutionVisitor | public class MethodExecutionVisitor extends ClassAdapter implements TransformationConstants(Code) | | Adds a "proxy method" to the methods that matches an execution pointcut as well as prefixing the "original
method".
The proxy method calls the JPClass.invoke static method. The signature of the invoke method depends if the
target method is static or not as follow:
invoke(callee, args.., caller) // non static
invoke(args.., caller) // static
(The reason why is that it simplifies call pointcut stack management)
author: Jonas BonŽr author: Alexandre Vasseur |
Method Summary | |
public static boolean | methodFilter(Set definitions, ExpressionContext ctx, MethodInfo methodInfo) Filters out the methods that are not eligible for transformation. | public void | visit(int version, int access, String name, String superName, String[] interfaces, String sourceFile) Visits the class. | public CodeVisitor | visitMethod(int access, String name, String desc, String[] exceptions, Attribute attrs) Visits the methods. |
MethodExecutionVisitor | public MethodExecutionVisitor(ClassVisitor cv, ClassInfo classInfo, Context ctx, Set addedMethods)(Code) | | Creates a new class adapter.
Parameters: cv - Parameters: classInfo - Parameters: ctx - Parameters: addedMethods - |
methodFilter | public static boolean methodFilter(Set definitions, ExpressionContext ctx, MethodInfo methodInfo)(Code) | | Filters out the methods that are not eligible for transformation.
Parameters: definitions - Parameters: ctx - Parameters: methodInfo - boolean true if the method should be filtered out |
visit | public void visit(int version, int access, String name, String superName, String[] interfaces, String sourceFile)(Code) | | Visits the class.
Parameters: access - Parameters: name - Parameters: superName - Parameters: interfaces - Parameters: sourceFile - |
visitMethod | public CodeVisitor visitMethod(int access, String name, String desc, String[] exceptions, Attribute attrs)(Code) | | Visits the methods.
Parameters: access - Parameters: name - Parameters: desc - Parameters: exceptions - Parameters: attrs - |
|
|