]> source.dussan.org Git - aspectj.git/commitdiff
simplifying ResolvedMember interface
authoraclement <aclement>
Thu, 19 Nov 2009 21:01:41 +0000 (21:01 +0000)
committeraclement <aclement>
Thu, 19 Nov 2009 21:01:41 +0000 (21:01 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeConstructorDeclaration.java
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeMethodDeclaration.java
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java

index bcc22be25d172b2af276add78889dcb7d73e36f1..cc569c1c4dbdd9c929c39149e4cb35637e148992 100644 (file)
@@ -175,7 +175,7 @@ public class InterTypeConstructorDeclaration extends InterTypeDeclaration {
 
                // Use the factory to build a semi-correct resolvedmember - then patch it up with
                // reset calls. This is SAFE
-               ResolvedMember preIntroducedConstructorRM = world.makeResolvedMember(binding);
+               ResolvedMemberImpl preIntroducedConstructorRM = world.makeResolvedMember(binding);
                preIntroducedConstructorRM.resetName(NameMangler.preIntroducedConstructor(aspectTypeX, targetTypeX));
                preIntroducedConstructorRM.resetModifiers(Modifier.PUBLIC | Modifier.STATIC | Modifier.FINAL);
                preIntroducedConstructorRM.resetReturnTypeToObjectArray();
@@ -290,7 +290,7 @@ public class InterTypeConstructorDeclaration extends InterTypeDeclaration {
                        return null; // We encountered a problem building the scope, don't continue - error already reported
 
                // This signature represents what we want consumers of the targetted type to 'see'
-               ResolvedMember signature = world.makeResolvedMemberForITD(binding, onTypeBinding, interTypeScope.getRecoveryAliases());
+               ResolvedMemberImpl signature = world.makeResolvedMemberForITD(binding, onTypeBinding, interTypeScope.getRecoveryAliases());
                signature.resetKind(Member.CONSTRUCTOR);
                signature.resetName("<init>");
                int resetModifiers = declaredModifiers;
index f6c89b127be5621a2107c5dbee2c8d4c9869ef73..0cf8dabe101dddab4a664927775c67d77cf5dca3 100644 (file)
@@ -42,6 +42,7 @@ import org.aspectj.weaver.Constants;
 import org.aspectj.weaver.NameMangler;
 import org.aspectj.weaver.NewMethodTypeMunger;
 import org.aspectj.weaver.ResolvedMember;
+import org.aspectj.weaver.ResolvedMemberImpl;
 import org.aspectj.weaver.ResolvedType;
 import org.aspectj.weaver.Shadow;
 import org.aspectj.weaver.UnresolvedType;
@@ -199,7 +200,7 @@ public class InterTypeMethodDeclaration extends InterTypeDeclaration {
                // This signature represents what we want consumers of the targetted type to 'see'
                // must use the factory method to build it since there may be typevariables from the binding
                // referred to in the parameters/returntype
-               ResolvedMember sig = factory.makeResolvedMemberForITD(binding, onTypeBinding, interTypeScope.getRecoveryAliases());
+               ResolvedMemberImpl sig = factory.makeResolvedMemberForITD(binding, onTypeBinding, interTypeScope.getRecoveryAliases());
                sig.resetName(new String(declaredSelector));
                int resetModifiers = declaredModifiers;
                if (binding.isVarargs())
index a8aead806ecb3c31c7e8a378200124419888824d..09ce0906703663f6b28bc4721a6dd902f7a7bdc2 100644 (file)
@@ -468,11 +468,11 @@ public class EclipseFactory {
                return finishedTypeMungers;
        }
 
-       public ResolvedMember makeResolvedMember(MethodBinding binding) {
+       public ResolvedMemberImpl makeResolvedMember(MethodBinding binding) {
                return makeResolvedMember(binding, binding.declaringClass);
        }
 
-       public ResolvedMember makeResolvedMember(MethodBinding binding, Shadow.Kind shadowKind) {
+       public ResolvedMemberImpl makeResolvedMember(MethodBinding binding, Shadow.Kind shadowKind) {
                MemberKind memberKind = binding.isConstructor() ? Member.CONSTRUCTOR : Member.METHOD;
                if (shadowKind == Shadow.AdviceExecution) {
                        memberKind = Member.ADVICE;
@@ -499,11 +499,11 @@ public class EclipseFactory {
         * typevariables whilst the compiler was resolving types - this only happens if it is a generic itd that shares type variables
         * with its target type.
         */
-       public ResolvedMember makeResolvedMemberForITD(MethodBinding binding, TypeBinding declaringType, Map /*
+       public ResolvedMemberImpl makeResolvedMemberForITD(MethodBinding binding, TypeBinding declaringType, Map /*
                                                                                                                                                                                                                 * TypeVariableBinding >
                                                                                                                                                                                                                 * original alias name
                                                                                                                                                                                                                 */recoveryAliases) {
-               ResolvedMember result = null;
+               ResolvedMemberImpl result = null;
                try {
                        typeVariablesForAliasRecovery = recoveryAliases;
                        result = makeResolvedMember(binding, declaringType);
@@ -513,11 +513,11 @@ public class EclipseFactory {
                return result;
        }
 
-       public ResolvedMember makeResolvedMember(MethodBinding binding, TypeBinding declaringType) {
+       public ResolvedMemberImpl makeResolvedMember(MethodBinding binding, TypeBinding declaringType) {
                return makeResolvedMember(binding, declaringType, binding.isConstructor() ? Member.CONSTRUCTOR : Member.METHOD);
        }
 
-       public ResolvedMember makeResolvedMember(MethodBinding binding, TypeBinding declaringType, MemberKind memberKind) {
+       public ResolvedMemberImpl makeResolvedMember(MethodBinding binding, TypeBinding declaringType, MemberKind memberKind) {
                // System.err.println("member for: " + binding + ", " + new String(binding.declaringClass.sourceName));
 
                // Convert the type variables and store them