1 2 3 4 5 6 7 8 9 10 11
aspect Bar { static int count = 0; before (): target(Pos) && ( call(* getX(..)) || call(* getY(..)) || call(* move(..)) ) { count++; } }