| org.codehaus.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 superName, String[] interfaces, String sourceFile) Visits the class. | public CodeVisitor | visitMethod(int access, String name, String desc, String[] exceptions, Attribute attrs) |
ConstructorBodyVisitor | public ConstructorBodyVisitor(ClassVisitor cv, ClassInfo classInfo, Context ctx, Set addedMethods)(Code) | | Creates a new instance.
Parameters: cv - Parameters: classInfo - Parameters: ctx - Parameters: addedMethods - |
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 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) | | Parameters: access - Parameters: name - Parameters: desc - Parameters: exceptions - Parameters: attrs - |
|
|