[aosd-discuss] About modifier in method signature

Eric Bodden eric.bodden at mail.mcgill.ca
Fri Aug 11 10:52:46 EST 2006


Hi.

 

No,  I don't think there is any other way in standard AspectJ. How else
would you wanna describe something which is not there, if not by
negating the complement?

 

Eric

 

From: discuss-bounces at aosd.net [mailto:discuss-bounces at aosd.net] On
Behalf Of Kawtip Nippon
Sent: Friday, August 11, 2006 2:09 AM
To: discuss at aosd.net
Subject: [aosd-discuss] About modifier in method signature

 

Dear all,

 

     I want to capture calls to methods that have no modifier(default)
visibility types. But when I wrote the pointcut like this >> call (* *
()), the aspect would capture all the methods (with private protected
public or no modifier) for me. I have to write a pointcut like this >>
call(!public !protected !private * * ()), I can capture the call
joinpoint I want.

 

    Are there any simpler ways to capture the default methods which have
no modifier?

 

Thank you,

Kawtip.

  

________________________________

Stay in the know. Pulse on the new Yahoo.com. Check it out.
<http://us.rd.yahoo.com/evt=42974/*http:/www.yahoo.com/preview>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/discuss_aosd.net/attachments/20060811/43554aa6/attachment.html 


More information about the discuss mailing list