Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] How to obtain the crosscutting relationship information between an advice and base code?

Hi Reza, 

the AJDT APIs provide for a means to get this information at compile time. For my work on AspectMaps, I produced an Eclipse plugin that produces this information in a more easily digestible way (so that AspectMaps can visualize it), as a text file and also on the console, depending on how it is configured.

Have a look at the plugin. You can download it (and its sources) from the AspectMaps website http://pleiad.cl/aspectmaps I'd be happy to answer any questions you have. 

On 02 Nov 2011, at 04:07, Reza Parizi wrote:

Hi,


Given an advice A, how is it possible to write a Java program (perhaps by using the current AspectJ and/or AJDT APIs) to find out what classes and within each class, what elements (i.e. join points) are advised by A?


Technically, the pointcut(s) associated with the advice A is able to tell us what the advised join points and their affected classes are. However, obtaining this kind of crosscutting relationships information in automated manner is probably non-trivial, where I am looking a solution for it.


Thanks in advance,

~parizi

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



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   
PLEIAD Lab - Computer Science Department (DCC) - University of Chile







Back to the top