]> source.dussan.org Git - aspectj.git/commitdiff
added isAny() to enable easy testing for full wildcard
authoracolyer <acolyer>
Tue, 16 Aug 2005 09:28:07 +0000 (09:28 +0000)
committeracolyer <acolyer>
Tue, 16 Aug 2005 09:28:07 +0000 (09:28 +0000)
weaver/src/org/aspectj/weaver/patterns/AnnotationTypePattern.java

index c814ba0dfeef2f41b562c893f41d5916d7edf268..822a22ac99cc8528392e0ecd2f06d2b924afd775 100644 (file)
@@ -45,6 +45,8 @@ public abstract class AnnotationTypePattern extends PatternNode {
        
        public abstract void resolve(World world);
        
+       public boolean isAny() { return false; }
+       
        /**
         * This can modify in place, or return a new TypePattern if the type changes.
         */
@@ -104,6 +106,7 @@ class AnyAnnotationTypePattern extends AnnotationTypePattern {
         return visitor.visit(this, data);
     }
     
+    public boolean isAny() { return true; }
 }
 
 class EllipsisAnnotationTypePattern extends AnnotationTypePattern {