Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ajdt-dev] Getting a list of all pointcuts in an aspect

Hi,
I want a listing of all the pointcuts inside an aspect with the pattern/joinpoint defined in the pointcut. For instance if following is my aspect:
 
public aspect A {
 
pointcut newPointcut( ) : call( void B.*(..));
 
}
 
then, I want a list of specifically the pattern call( void B.*(..)) inside the aspect. I am having trouble getting this data. I am looking at the IProgramElement for the source code and its children, but its children only contain the data: [newPointcut( )], without this pattern.
 
Can anyone please tell me how can I get access to the pattern data or the joinpoint defined in the pointcut from inside a program. What APIs to use etc. If there is any documentation/samples, i will really appreciate it.
 
Thanks.


Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

Back to the top