aboutsummaryrefslogtreecommitdiffstats
path: root/weaver5/java5-testsrc
diff options
context:
space:
mode:
authoraclement <aclement>2008-02-25 21:45:35 +0000
committeraclement <aclement>2008-02-25 21:45:35 +0000
commitaff8542d4f5e6b386dd0a216b4cf9adf5d413212 (patch)
tree1cdf8a306b28e4948db996cb936b64a6a5edaa53 /weaver5/java5-testsrc
parent596926f6d75a5e4510ea98b4b3cec9fd95f51672 (diff)
downloadaspectj-aff8542d4f5e6b386dd0a216b4cf9adf5d413212.tar.gz
aspectj-aff8542d4f5e6b386dd0a216b4cf9adf5d413212.zip
annoValMatch: testcode
Diffstat (limited to 'weaver5/java5-testsrc')
-rw-r--r--weaver5/java5-testsrc/test/A3.java19
-rw-r--r--weaver5/java5-testsrc/test/AnnoValues.java20
-rw-r--r--weaver5/java5-testsrc/test/Color.java14
3 files changed, 53 insertions, 0 deletions
diff --git a/weaver5/java5-testsrc/test/A3.java b/weaver5/java5-testsrc/test/A3.java
new file mode 100644
index 000000000..ab54388ae
--- /dev/null
+++ b/weaver5/java5-testsrc/test/A3.java
@@ -0,0 +1,19 @@
+/* *******************************************************************
+ * Copyright (c) 2008 Contributors
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors
+ * Andy Clement
+ * ******************************************************************/
+package test;
+
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+public @interface A3 {
+ Color value() default Color.RED;
+}
diff --git a/weaver5/java5-testsrc/test/AnnoValues.java b/weaver5/java5-testsrc/test/AnnoValues.java
new file mode 100644
index 000000000..08301d1a0
--- /dev/null
+++ b/weaver5/java5-testsrc/test/AnnoValues.java
@@ -0,0 +1,20 @@
+/* *******************************************************************
+ * Copyright (c) 2008 Contributors
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors
+ * Andy Clement
+ * ******************************************************************/
+package test;
+
+public class AnnoValues {
+ public void none() {}
+ @A3 public void defaultMethod() {}
+ @A3(Color.GREEN) public void greenMethod() {}
+ @A3(Color.RED) public void redMethod() {}
+ @A3(Color.BLUE) public void blueMethod() {}
+}
diff --git a/weaver5/java5-testsrc/test/Color.java b/weaver5/java5-testsrc/test/Color.java
new file mode 100644
index 000000000..dea2593ac
--- /dev/null
+++ b/weaver5/java5-testsrc/test/Color.java
@@ -0,0 +1,14 @@
+package test;
+/* *******************************************************************
+ * Copyright (c) 2008 Contributors
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors
+ * Andy Clement
+ * ******************************************************************/
+
+public enum Color { RED, GREEN, BLUE } \ No newline at end of file