aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2005-03-10 17:32:06 +0000
committeraclement <aclement>2005-03-10 17:32:06 +0000
commit1fdd7fd3d2b4c83a451f925c5446f25a1c16be5c (patch)
tree7d4e57cf7cdfb9714e3d0f6b534401b88704fe6c /weaver
parent4676869a3b174ca16e8836a4289a5b8dddbb2a41 (diff)
downloadaspectj-1fdd7fd3d2b4c83a451f925c5446f25a1c16be5c.tar.gz
aspectj-1fdd7fd3d2b4c83a451f925c5446f25a1c16be5c.zip
Declare annotation: useful to know if a type pattern specifies a starred annotation pattern.
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/patterns/TypePattern.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/TypePattern.java b/weaver/src/org/aspectj/weaver/patterns/TypePattern.java
index cf0aa4809..9763cf9e7 100644
--- a/weaver/src/org/aspectj/weaver/patterns/TypePattern.java
+++ b/weaver/src/org/aspectj/weaver/patterns/TypePattern.java
@@ -60,6 +60,10 @@ public abstract class TypePattern extends PatternNode {
this.isVarArgs = isVarArgs;
}
+ public boolean isStarAnnotation() {
+ return annotationPattern == AnnotationTypePattern.ANY;
+ }
+
protected TypePattern(boolean includeSubtypes) {
this(includeSubtypes,false);
}