1 2 3 4 5 6 7 8 9
package pAspect; public aspect Aspect { public static boolean ranAdvice = false; before (): target(pClass.Class) && call(* foo(..)) { ranAdvice = true; } }