package test.basic; class BeforeTest { hook TestArgs { TestArgs(method(..args)) { execution(method); } before() { System.out.println((thisJoinPoint.getArgumentsArray()[0]).toString()); } } hook TestCallee { TestCallee(method(..args)) { execution(method); } before() { System.out.println((thisJoinPoint.getCalledObject()).toString()); } } }