As Eric says, you might want to use call. Calls to doA made from doB: call(* doA(..)) && withincode(* doB(..))
Andy On 10 July 2014 03:47, Eric B <[email protected]> wrote: > I'm not 100% sure of this, but you would be using a call pointcut - not an > execution pointcut. > > So something like call( * A.doA(..) ). > > This would advise any calls to A.doA() method from the call location (ie: > B.doB().doA()). An execution pointcut would advise A.doA(). > > Eric > > > > On Wed, Jul 9, 2014 at 12:59 PM, vach <[email protected]> wrote: > >> Is it possible to match execution within execution? >> >> class A{ >> doA(){} >> } >> >> class B{ >> doB{ >> doA(); // <---- how to point at this execution? >> } >> } >> >> >> >> -- >> View this message in context: >> http://aspectj.2085585.n4.nabble.com/Pointcut-to-execution-within-execution-tp4651472.html >> Sent from the AspectJ - users mailing list archive at Nabble.com. >> _______________________________________________ >> aspectj-users mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe >> from this list, visit >> https://dev.eclipse.org/mailman/listinfo/aspectj-users >> > > > _______________________________________________ > aspectj-users mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/aspectj-users >
_______________________________________________ aspectj-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/aspectj-users
