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 <samanthajosep...@gmail.com>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
> aspectj-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to