summaryrefslogtreecommitdiffstats
path: root/ajde/testdata/WeaveInfoMessagesTest/AspectDeclareAnnotations.aj
diff options
context:
space:
mode:
authoraclement <aclement>2005-05-04 09:22:43 +0000
committeraclement <aclement>2005-05-04 09:22:43 +0000
commitabc9a58ac59f0ee427039e26cb44952cbef5e24b (patch)
tree8693a41b3f3bfe1268ffd8384a88ef57d8356d4c /ajde/testdata/WeaveInfoMessagesTest/AspectDeclareAnnotations.aj
parent92a416462cb5a21b595c05861030dc591359945f (diff)
downloadaspectj-abc9a58ac59f0ee427039e26cb44952cbef5e24b.tar.gz
aspectj-abc9a58ac59f0ee427039e26cb44952cbef5e24b.zip
Impl of enhancement 92906 from Andrew Huff. -showWeaveInfo for declare annotation
Diffstat (limited to 'ajde/testdata/WeaveInfoMessagesTest/AspectDeclareAnnotations.aj')
-rw-r--r--ajde/testdata/WeaveInfoMessagesTest/AspectDeclareAnnotations.aj25
1 files changed, 25 insertions, 0 deletions
diff --git a/ajde/testdata/WeaveInfoMessagesTest/AspectDeclareAnnotations.aj b/ajde/testdata/WeaveInfoMessagesTest/AspectDeclareAnnotations.aj
new file mode 100644
index 000000000..46bda48f8
--- /dev/null
+++ b/ajde/testdata/WeaveInfoMessagesTest/AspectDeclareAnnotations.aj
@@ -0,0 +1,25 @@
+// little aspect and class for testing declaration of annotations
+
+@interface anInterface {}
+
+public aspect AspectDeclareAnnotations{
+
+ declare @type : Test : @anInterface;
+ declare @constructor : Test.new(String,int) : @anInterface;
+ declare @method : int Test.fac(int) : @anInterface;
+ declare @field : int Test.a : @anInterface;
+
+}
+
+class Test{
+
+ public Test(String say, int something){
+ System.out.println(say + something);
+ }
+
+ public int fac(int n){
+ return (n == 0)? 1 : n * fac(n-1);
+ }
+
+ public int a = 1;
+}