| java.lang.Object com.tc.asm.ClassAdapter com.tc.aspectwerkz.transform.inlining.weaver.ConstructorBodyVisitor
ConstructorBodyVisitor | public class ConstructorBodyVisitor extends ClassAdapter implements TransformationConstants(Code) | | Handles constructor execution weaving.
For each matching ctor, a static method is added with the same signature and with the extra thisClass parameter
prepended to the list. Then the orginal ctor body is changed to call the JP.invoke, only after call to this / super
initializers.
TODO rename in ..execution..
author: Alexandre Vasseur |
Method Summary | |
public static boolean | constructorFilter(Set definitions, ExpressionContext ctx) Filters out the constructor 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) |
constructorFilter | public static boolean constructorFilter(Set definitions, ExpressionContext ctx)(Code) | | Filters out the constructor that are not eligible for transformation.
Parameters: definitions - Parameters: ctx - boolean true if the constructor 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) | | 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)
|
|
|