summaryrefslogtreecommitdiffstats
path: root/ajde/testdata
diff options
context:
space:
mode:
authormkersten <mkersten>2003-08-08 21:10:32 +0000
committermkersten <mkersten>2003-08-08 21:10:32 +0000
commit4a1a347b2225e48fa4e9d617e7bf083680967a70 (patch)
tree7e7cc1b56212c86ce562cb7203c6dbf504eaa391 /ajde/testdata
parent3289df4d8c5a8c8e3ada9c301a0b023dda8524a3 (diff)
downloadaspectj-4a1a347b2225e48fa4e9d617e7bf083680967a70.tar.gz
aspectj-4a1a347b2225e48fa4e9d617e7bf083680967a70.zip
Got advice relationships working.
Diffstat (limited to 'ajde/testdata')
-rw-r--r--ajde/testdata/examples/coverage/ModelCoverage.java42
1 files changed, 29 insertions, 13 deletions
diff --git a/ajde/testdata/examples/coverage/ModelCoverage.java b/ajde/testdata/examples/coverage/ModelCoverage.java
index 8066ca751..d2d639beb 100644
--- a/ajde/testdata/examples/coverage/ModelCoverage.java
+++ b/ajde/testdata/examples/coverage/ModelCoverage.java
@@ -36,19 +36,35 @@ class SubPoint extends Point { }
class Line { }
aspect AdvisesRelationshipCoverage {
- pointcut executionP(): execution(void Point.setX(int));
- before(): executionP() { }
-
- before(): execution(*..*.new(..)) { }
- before(): get(int *.*) { }
- before(): set(int *.*) { }
- before(): initialization(Point.new(..)) { }
- before(): staticinitialization(Point) { }
- before(): handler(IOException) { }
- before(): call(* Point.setX(int)) { }
- before(): call(Point.new()) { }
- before(): within(*) && execution(* Point.setX(..)) { }
- before(): within(*) && execution(Point.new()) { }
+ pointcut methodExecutionP(): execution(void Point.setX(int));
+ before(): methodExecutionP() { }
+
+ pointcut constructorExecutionP(): execution(Point.new());
+ before(): constructorExecutionP() { }
+
+ pointcut callMethodP(): call(* Point.setX(int));
+ before(): callMethodP() { }
+
+ pointcut callConstructorP(): call(Point.new());
+ before(): callConstructorP() { }
+
+ pointcut getP(): get(int *.*);
+ before(): getP() { }
+
+ pointcut setP(): set(int *.*);
+ before(): setP() { }
+
+ pointcut initializationP(): initialization(Point.new(..));
+ before(): initializationP() { }
+
+ pointcut staticinitializationP(): staticinitialization(Point);
+ before(): staticinitializationP() { }
+
+ pointcut handlerP(): handler(IOException);
+ before(): handlerP() { }
+
+// before(): within(*) && execution(* Point.setX(..)) { }
+// before(): within(*) && execution(Point.new()) { }
}
aspect AdviceNamingCoverage {