Well, you could extend your pointcut with an if pointcut, using
reflection to determine whether the matched joinpoint is in an anonymous
class: something like if(myObject.getClass().isAnonymousClass()) should
filter out all non-anonymous classes.

Dehua Zhang wrote:
> But, can we weave the anonymous inner class only?
> For example, I only want to match the println in the run method.
>
> --
> Dehua (Andy) Zhang
> Sable Research Group, McGill University
> Montréal, Québec, Canada
> http://www.cs.mcgill.ca/~dzhang25
>   
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to