summaryrefslogtreecommitdiffstats
path: root/tests/java5/reflection/ReflectOnAjcCompiledPointcuts.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/reflection/ReflectOnAjcCompiledPointcuts.java')
-rw-r--r--tests/java5/reflection/ReflectOnAjcCompiledPointcuts.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/java5/reflection/ReflectOnAjcCompiledPointcuts.java b/tests/java5/reflection/ReflectOnAjcCompiledPointcuts.java
new file mode 100644
index 000000000..9dc9927be
--- /dev/null
+++ b/tests/java5/reflection/ReflectOnAjcCompiledPointcuts.java
@@ -0,0 +1,22 @@
+import org.aspectj.weaver.tools.*;
+
+public class ReflectOnAjcCompiledPointcuts {
+
+ public static void main(String[] args) {
+ PointcutParser p = new PointcutParser();
+ PointcutExpression pe = null;
+ pe = p.parsePointcutExpression("PointcutLibrary.propertyAccess()");
+ pe = p.parsePointcutExpression("PointcutLibrary.propertyUpdate()");
+ pe = p.parsePointcutExpression("PointcutLibrary.methodExecution()");
+ pe = p.parsePointcutExpression("PointcutLibrary.propertyGet()");
+ pe = p.parsePointcutExpression("PointcutLibrary.propertySet(Object)");
+
+ PointcutParameter pp = p.createPointcutParameter("foo",String.class);
+ p.parsePointcutExpression("execution(* *(..)) && PointcutLibrary.propertySet(foo)",
+ Object.class,
+ new PointcutParameter[] {pp});
+
+ }
+
+
+} \ No newline at end of file