]> source.dussan.org Git - aspectj.git/commitdiff
uses pointcut relationship made conditional (can help make structure model tests...
authoraclement <aclement>
Wed, 10 May 2006 12:05:10 +0000 (12:05 +0000)
committeraclement <aclement>
Wed, 10 May 2006 12:05:10 +0000 (12:05 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java

index 11aaf9aa149067053e04d47a655ba53cd0c44c6b..4b48ccff19225df904878f1b5b5e6e6b302d4042 100644 (file)
@@ -52,7 +52,7 @@ import org.aspectj.weaver.patterns.*;
 public class AsmHierarchyBuilder extends ASTVisitor {
 
        protected AsmElementFormatter formatter = new AsmElementFormatter();
-       
+       public static boolean shouldAddUsesPointcut = true;
        /**
         * Reset for every compilation unit.
         */
@@ -390,7 +390,7 @@ public class AsmHierarchyBuilder extends ASTVisitor {
                formatter.genLabelAndKind(methodDeclaration, peNode); // will set the name
                genBytecodeInfo(methodDeclaration, peNode);
                List namedPointcuts = genNamedPointcuts(methodDeclaration);
-               addUsesPointcutRelationsForNode(peNode, namedPointcuts, methodDeclaration);
+               if (shouldAddUsesPointcut) addUsesPointcutRelationsForNode(peNode, namedPointcuts, methodDeclaration);
                
                if (methodDeclaration.returnType!=null) {
                        // if we don't make the distinction between ITD fields and other