Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Weaving anonymous inner class

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
>   


Back to the top