From b26fead410970bfb7a363ace1dc956c0a5b44c88 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 10 May 2006 12:05:10 +0000 Subject: [PATCH] uses pointcut relationship made conditional (can help make structure model tests easier to write if turned off) --- .../ajdt/internal/core/builder/AsmHierarchyBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java index 11aaf9aa1..4b48ccff1 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java @@ -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 -- 2.39.5