Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ajdt-dev] IProgramElement: finding pointcut for advice?

I assume that you mean something like this:

...
pointcut p() : within(Foo);

after() : p() { ... }

And you want to know that the after advice refers to the p() pointcut.
 If so, then I am afraid that this information is not directly
available.  You will have to parse the source code yourself.  To find
this information.

If this is not what you mean, please describe.

On Fri, Mar 19, 2010 at 2:04 PM, Jeffrey W. Koch <jwk043000@xxxxxxxxxxxx> wrote:
> Hello,
> I'm writing code that looks through the AJDT crosscutting information
> available through the AJProjectModelFacade.
>
> If I have an advice's IProgramElement, is it possible to identify the
> pointcut associated with that advice?
>
> Thanks!
> _______________________________________________
> ajdt-dev mailing list
> ajdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ajdt-dev
>


Back to the top