1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
aspect A1 { pointcut setPcd() : set(int C1.x); before() : setPcd() { } } class C1 { int x = 0; public void method() { x = 1; x = 2; } }