blob: 72fec1886969c0ea813d7000527009682dcbb3f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
public class Simple {
public static void main(String []argv) {
new Simple().a();
}
public void a() {}
}
aspect X {
before():execution(* a(..)) {
System.err.println(thisJoinPoint);
System.err.println(thisJoinPointStaticPart);
System.err.println(thisEnclosingJoinPointStaticPart);
}
before():execution(Simple.new(..)) {
System.err.println(thisJoinPoint);
System.err.println(thisEnclosingJoinPointStaticPart);
System.err.println(thisJoinPointStaticPart);
}
}
|