AspectJ pointcut to method call in specific methods
问题 I want to create a pointcut to target a call to a method from specific methods. take the following: class Parent { public foo() { //do something } } class Child extends Parent { public bar1() { foo(); } public bar2() { foo(); } public bar3() { foo(); } } I would like to have a point cut on the call to foo() in methods bar1() and bar3() I was thinking something like pointcut fooOperation(): call(public void Parent.foo() && (execution(* Child.bar1()) || execution(* Child.bar3()) ); before() :