blob: 2529297e96f31fe4e5abdf849a4b25f455b280d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
aspect BadA {
public void m(int x) {
System.out.println(x);
}
// pointcut foo(): execution(void Hello.*(..));
pointcut foo1(): abc);
pointcut foo2(): abc ;
// pointcut bar(): this(Bazoo);
//pointcut foo2(): abc;
//pointcut foo3(): abc;
// before(): abc {
// System.out.println("enter");
// }
// after(): abc {
// System.out.println("enter");
// }
// after() throwing (Throwable t): abc {
// System.out.println("enter");
// }
// public int Hello.m() {
// System.out.println("m()");
// return 10;
// }
// void around(int x): abc {
// System.out.println("enter");
// }
}
|