Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] How to get the pointcut from an AdviceElement ?

Unfortunately, this has not been implemented directly.  I think the
best that you can do is locate the start and end points for the advice
declaration in the text and extract directly from the text.

On Fri, Feb 6, 2009 at 9:03 AM, Johan Fabry <jfabry@xxxxxxxxxxxxx> wrote:
> Hi, all,
>
> continuing with my crosscutting reporting app, I'd also like to print out
> the pointcut used by a given before/after/around. The crosscutting
> relationships I get from the model give me an
> org.eclipse.ajdt.core.javaelements.AdviceElement, but from that I can only
> straightforwardly get whether it's a before/after/around and the list of
> parameters. It seems to me that the pointcut is just not there. Can anybody
> point me (pun not intended :-) ) to a way to get to the pointcut?
>
> Thanks in advance!
> --
> Johan Fabry
> jfabry@xxxxxxxxxxxxx - http://dcc.uchile.cl/~jfabry
> PLEIAD Lab - Computer Science Department (DCC) - University of Chile
>
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>


Back to the top