diff options
author | aclement <aclement> | 2006-05-10 12:05:10 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-05-10 12:05:10 +0000 |
commit | b26fead410970bfb7a363ace1dc956c0a5b44c88 (patch) | |
tree | d812aa5fa4b3a87a8693c9017e5b7a50d10eac13 /org.aspectj.ajdt.core/src/org | |
parent | 20e6c3bf2c75c1e8b4584cdd401773c7a83fe720 (diff) | |
download | aspectj-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.java | 4 |
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 |