blob: 2238a232310246465cae0c7747df8a9c6de051b8 (
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
|
aspect Trace {
public static boolean expectNoSuchMethodError = false;
before(): execution(void doit(..)) {
System.out.println("enter");
}
static aspect InnerTrace {
before(): execution(void doit(..)) {
System.out.println("Inner enter");
}
after() returning: execution(void doit(..)) {
System.out.println("Inner exit");
}
after() throwing: execution(void doit(..)) {
System.out.println("Inner after throwing");
}
}
after() returning: execution(void doit(..)) {
System.out.println("exit");
}
}
|