aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/src/org
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-10 12:05:10 +0000
committeraclement <aclement>2006-05-10 12:05:10 +0000
commitb26fead410970bfb7a363ace1dc956c0a5b44c88 (patch)
treed812aa5fa4b3a87a8693c9017e5b7a50d10eac13 /org.aspectj.ajdt.core/src/org
parent20e6c3bf2c75c1e8b4584cdd401773c7a83fe720 (diff)
downloadaspectj-b26fead410970bfb7a363ace1dc956c0a5b44c88.tar.gz
aspectj-b26fead410970bfb7a363ace1dc956c0a5b44c88.zip
uses pointcut relationship made conditional (can help make structure model tests easier to write if turned off)
Diffstat (limited to 'org.aspectj.ajdt.core/src/org')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java4
1 files 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