From: acolyer Date: Tue, 16 Aug 2005 09:28:07 +0000 (+0000) Subject: added isAny() to enable easy testing for full wildcard X-Git-Tag: V1_5_0M3~117 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6a533b0d99891db6b252b2aed23995c39d062063;p=aspectj.git added isAny() to enable easy testing for full wildcard --- diff --git a/weaver/src/org/aspectj/weaver/patterns/AnnotationTypePattern.java b/weaver/src/org/aspectj/weaver/patterns/AnnotationTypePattern.java index c814ba0df..822a22ac9 100644 --- a/weaver/src/org/aspectj/weaver/patterns/AnnotationTypePattern.java +++ b/weaver/src/org/aspectj/weaver/patterns/AnnotationTypePattern.java @@ -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 {