]> source.dussan.org Git - aspectj.git/commitdiff
enables a Shadow to have a signature to be used for matching that is distinct from...
authoracolyer <acolyer>
Thu, 1 Sep 2005 12:34:49 +0000 (12:34 +0000)
committeracolyer <acolyer>
Thu, 1 Sep 2005 12:34:49 +0000 (12:34 +0000)
weaver/src/org/aspectj/weaver/Shadow.java

index e0de3011f3d5c9db54fd9e113a2b21bce6f07f1a..86785f2d4c3fb7574dd6aa423f99829bcb7f4044 100644 (file)
@@ -46,6 +46,7 @@ public abstract class Shadow {
        
        private final Kind kind; 
     private final Member signature;
+    private Member matchingSignature;
     private ResolvedMember resolvedSignature;
        protected final Shadow enclosingShadow;
     protected List mungers = new ArrayList(1);
@@ -187,6 +188,18 @@ public abstract class Shadow {
         return signature;
     }
     
+    /**
+     * returns the signature of the thing under this shadow, with
+     * any synthetic arguments removed
+     */
+    public Member getMatchingSignature() {
+       return matchingSignature != null ? matchingSignature : signature;
+    }
+    
+    public void setMatchingSignature(Member member) {
+       this.matchingSignature = member;
+    }
+    
     /**
      * returns the resolved signature of the thing under this shadow
      *