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?

That's exactly what I had in mind. I suspected I'd have to parse the source code, but I wanted to be sure I hadn't overlooked something in the docs.

Thanks for your answer!
Jeff

On Mar 19, 2010, at 4:44 PM, Andrew Eisenberg wrote:

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

_______________________________________________
ajdt-dev mailing list
ajdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ajdt-dev



Back to the top