diff options
author | jhugunin <jhugunin> | 2003-01-21 18:55:23 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-01-21 18:55:23 +0000 |
commit | 377c02631b475eb33c82f4f3ad7f97efd7a1bdb7 (patch) | |
tree | 5bc604281121a66339e2e6adbe976d5b8f67e553 | |
parent | 7e0c6a74f0f2f35be6724650fd3a09995efea978 (diff) | |
download | aspectj-377c02631b475eb33c82f4f3ad7f97efd7a1bdb7.tar.gz aspectj-377c02631b475eb33c82f4f3ad7f97efd7a1bdb7.zip |
changed class name to match change from declare dominates to
declare precedence
-rw-r--r-- | weaver/src/org/aspectj/weaver/CrosscuttingMembers.java | 2 | ||||
-rw-r--r-- | weaver/src/org/aspectj/weaver/World.java | 2 | ||||
-rw-r--r-- | weaver/src/org/aspectj/weaver/patterns/Declare.java | 2 | ||||
-rw-r--r-- | weaver/src/org/aspectj/weaver/patterns/DeclarePrecedence.java (renamed from weaver/src/org/aspectj/weaver/patterns/DeclareDominates.java) | 12 | ||||
-rw-r--r-- | weaver/src/org/aspectj/weaver/patterns/PatternParser.java | 4 | ||||
-rw-r--r-- | weaver/testsrc/org/aspectj/weaver/bcel/WeaveOrderTestCase.java | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/weaver/src/org/aspectj/weaver/CrosscuttingMembers.java b/weaver/src/org/aspectj/weaver/CrosscuttingMembers.java index 21be96474..1ffb5dfdf 100644 --- a/weaver/src/org/aspectj/weaver/CrosscuttingMembers.java +++ b/weaver/src/org/aspectj/weaver/CrosscuttingMembers.java @@ -93,7 +93,7 @@ public class CrosscuttingMembers { if (declare instanceof DeclareErrorOrWarning) { ShadowMunger m = new Checker((DeclareErrorOrWarning)declare); addShadowMunger(m); - } else if (declare instanceof DeclareDominates) { + } else if (declare instanceof DeclarePrecedence) { declareDominates.add(declare); } else if (declare instanceof DeclareParents) { DeclareParents dp = (DeclareParents)declare; diff --git a/weaver/src/org/aspectj/weaver/World.java b/weaver/src/org/aspectj/weaver/World.java index 156c449ac..a97664fd6 100644 --- a/weaver/src/org/aspectj/weaver/World.java +++ b/weaver/src/org/aspectj/weaver/World.java @@ -278,7 +278,7 @@ public abstract class World { //??? This method can be called a large number of times. int order = 0; for (Iterator i = crosscuttingMembersSet.getDeclareDominates().iterator(); i.hasNext(); ) { - DeclareDominates d = (DeclareDominates)i.next(); + DeclarePrecedence d = (DeclarePrecedence)i.next(); int thisOrder = d.compare(aspect1, aspect2); //System.out.println("comparing: " + thisOrder + ": " + d); if (thisOrder != 0) { diff --git a/weaver/src/org/aspectj/weaver/patterns/Declare.java b/weaver/src/org/aspectj/weaver/patterns/Declare.java index 415043dee..14e04eae1 100644 --- a/weaver/src/org/aspectj/weaver/patterns/Declare.java +++ b/weaver/src/org/aspectj/weaver/patterns/Declare.java @@ -29,7 +29,7 @@ public abstract class Declare extends PatternNode { case ERROR_OR_WARNING: return DeclareErrorOrWarning.read(s, context); case DOMINATES: - return DeclareDominates.read(s, context); + return DeclarePrecedence.read(s, context); case PARENTS: return DeclareParents.read(s, context); case SOFT: diff --git a/weaver/src/org/aspectj/weaver/patterns/DeclareDominates.java b/weaver/src/org/aspectj/weaver/patterns/DeclarePrecedence.java index b5c9f563f..837bbc7ce 100644 --- a/weaver/src/org/aspectj/weaver/patterns/DeclareDominates.java +++ b/weaver/src/org/aspectj/weaver/patterns/DeclarePrecedence.java @@ -20,15 +20,15 @@ import org.aspectj.bridge.IMessage; import org.aspectj.weaver.*; import org.aspectj.weaver.ResolvedTypeX; -public class DeclareDominates extends Declare { +public class DeclarePrecedence extends Declare { private TypePatternList patterns; - public DeclareDominates(List patterns) { + public DeclarePrecedence(List patterns) { this(new TypePatternList(patterns)); } - private DeclareDominates(TypePatternList patterns) { + private DeclarePrecedence(TypePatternList patterns) { this.patterns = patterns; } @@ -41,8 +41,8 @@ public class DeclareDominates extends Declare { } public boolean equals(Object other) { - if (!(other instanceof DeclareDominates)) return false; - DeclareDominates o = (DeclareDominates)other; + if (!(other instanceof DeclarePrecedence)) return false; + DeclarePrecedence o = (DeclarePrecedence)other; return o.patterns.equals(patterns); } @@ -58,7 +58,7 @@ public class DeclareDominates extends Declare { } public static Declare read(DataInputStream s, ISourceContext context) throws IOException { - Declare ret = new DeclareDominates(TypePatternList.read(s, context)); + Declare ret = new DeclarePrecedence(TypePatternList.read(s, context)); ret.readLocation(context, s); return ret; } diff --git a/weaver/src/org/aspectj/weaver/patterns/PatternParser.java b/weaver/src/org/aspectj/weaver/patterns/PatternParser.java index 315272981..9b1ce7455 100644 --- a/weaver/src/org/aspectj/weaver/patterns/PatternParser.java +++ b/weaver/src/org/aspectj/weaver/patterns/PatternParser.java @@ -109,13 +109,13 @@ public class PatternParser { return ret; } - public DeclareDominates parseDominates() { + public DeclarePrecedence parseDominates() { List l = new ArrayList(); do { l.add(parseTypePattern()); } while (maybeEat(",")); - return new DeclareDominates(l); + return new DeclarePrecedence(l); } private Declare parseParents() { diff --git a/weaver/testsrc/org/aspectj/weaver/bcel/WeaveOrderTestCase.java b/weaver/testsrc/org/aspectj/weaver/bcel/WeaveOrderTestCase.java index 270faf6fc..da9818622 100644 --- a/weaver/testsrc/org/aspectj/weaver/bcel/WeaveOrderTestCase.java +++ b/weaver/testsrc/org/aspectj/weaver/bcel/WeaveOrderTestCase.java @@ -19,7 +19,7 @@ import java.io.*; import org.apache.bcel.Constants; import org.apache.bcel.generic.*; import org.aspectj.weaver.patterns.*; -import org.aspectj.weaver.patterns.DeclareDominates; +import org.aspectj.weaver.patterns.DeclarePrecedence; import org.aspectj.weaver.*; /**. |