Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Dummy Variables on AspectJ Quantification Mechanism

Greetings,

There seem to be a few cases in which the use of bound pattern variables in the definition of pointcuts would be useful.  For instance, if one wants to capture all atribute sets within methods with a certain annotation, but with the restriction that the method and attribute belong to the same class.  Something like:
pointcut setsWithinAnnotatedMethod() [TypePattern class_name: *] : withincode(@Annotation* class_name.*(..)) && set(* class_name.*);

 

Has this ever been considered?  Do you think it would be a useful feature to have in the pointcut quantification mechanism?

All the best,

Rodrigo Gonçalves

 


Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web

Back to the top