| java.lang.Object com.tc.asm.ClassAdapter com.tc.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 signature, String superName, String[] interfaces) Visits the class. | public MethodVisitor | visitMethod(int access, String name, String desc, String signature, String[] exceptions) Visits the methods. |
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 signature, String superName, String[] interfaces)(Code) | | Visits the class.
Parameters: access - Parameters: name - Parameters: signature - Parameters: superName - Parameters: interfaces - |
visitMethod | public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)(Code) | | Visits the methods.
Parameters: access - Parameters: name - Parameters: desc - Parameters: signature - Parameters: exceptions - |
Methods inherited from com.tc.asm.ClassAdapter | public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)(Code)(Java Doc) public AnnotationVisitor visitAnnotation(String desc, boolean visible)(Code)(Java Doc) public void visitAttribute(Attribute attr)(Code)(Java Doc) public void visitEnd()(Code)(Java Doc) public FieldVisitor visitField(int access, String name, String desc, String signature, Object value)(Code)(Java Doc) public void visitInnerClass(String name, String outerName, String innerName, int access)(Code)(Java Doc) public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)(Code)(Java Doc) public void visitOuterClass(String owner, String name, String desc)(Code)(Java Doc) public void visitSource(String source, String debug)(Code)(Java Doc)
|
|
|