blob: 7f82c3631e97566c0cc91ea5019820c70e87558d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
aspect A1 {
after() throwing (Throwable t): execution(* Hello.*(..)) {
System.out.println("enter");
}
after() throwing: execution(* Hello.*(..)) {
System.out.println("enter");
}
after() returning: execution(* Hello.*(..)) {
System.out.println("enter");
}
after(): execution(void Hello.*ai*(..)) {
}
}
class Hello {
public static void main(String[] args) {
System.out.println("hello");
}
}
|