diff options
author | aclement <aclement> | 2010-06-11 18:19:22 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-06-11 18:19:22 +0000 |
commit | c4e4c3706e1ac7aae2e4a5032aa8e91cb6b14c95 (patch) | |
tree | 46199d3a9cd05138d654d2f48a55033c8d5ad8b0 | |
parent | 9f636c13c87ace2bf0405061f8ce99bcfc6dc649 (diff) | |
download | aspectj-c4e4c3706e1ac7aae2e4a5032aa8e91cb6b14c95.tar.gz aspectj-c4e4c3706e1ac7aae2e4a5032aa8e91cb6b14c95.zip |
itd inners
-rw-r--r-- | org.aspectj.matcher/src/org/aspectj/weaver/NewMemberClassTypeMunger.java | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/NewMemberClassTypeMunger.java b/org.aspectj.matcher/src/org/aspectj/weaver/NewMemberClassTypeMunger.java index e7576e96a..c086c2c86 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/NewMemberClassTypeMunger.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/NewMemberClassTypeMunger.java @@ -23,7 +23,7 @@ import org.aspectj.bridge.ISourceLocation; public class NewMemberClassTypeMunger extends ResolvedTypeMunger { private UnresolvedType targetType; - private String memberTypeName; + private String memberTypeName; // short (last part of) name private int version = 1; // 1.6.9m2 public NewMemberClassTypeMunger(UnresolvedType targetType, String memberTypeName) { @@ -67,4 +67,24 @@ public class NewMemberClassTypeMunger extends ResolvedTypeMunger { return memberTypeName; } + public int hashCode() { + int result = 17; + result = 37 * result + kind.hashCode(); + result = 37 * result + memberTypeName.hashCode(); + result = 37 * result + targetType.hashCode(); + result = 37 * result + ((typeVariableAliases == null) ? 0 : typeVariableAliases.hashCode()); + return result; + } + + public boolean equals(Object other) { + if (!(other instanceof NewMemberClassTypeMunger)) { + return false; + } + NewMemberClassTypeMunger o = (NewMemberClassTypeMunger) other; + return ((kind == null) ? (o.kind == null) : kind.equals(o.kind)) + && memberTypeName.equals(o.memberTypeName) + && targetType.equals(o.targetType) + && ((typeVariableAliases == null) ? (o.typeVariableAliases == null) : typeVariableAliases + .equals(o.typeVariableAliases)); + } }
\ No newline at end of file |