For all methods called from the foo() method:
pointcut interestingMethods(): call(* *(..)) && withincode(public void
foo(..));
before(): interestingMethods() {
System.out.println("About to call "+thisJoinPoint);
}
Compile with -showWeaveInfo to see all the joinpoints being hit by that.
cheers,
Andy
On 30 December 2013 22:52, samantha joseph <[email protected]>wrote:
> Hello,
>
> Can anyone please suggest how to get the methods called by a particular
> method.
>
> I am using aspectJ in eclipse.
>
> Thank You!
>
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users