Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [ajdt-dev] is there a 'shortcut' for this?

Hi Marco -

Ron is kind to reply, but this kind of question is answered quite
well in the AspectJ language guide.  You'll find it much easier to
go through the guide and the examples before trying any significant
aspects, since the guide answers most questions.  (You'll probably
also want to read the FAQ sections "Programming notes and tips"
"Common problems" and "Getting Help".)

The documentation comes with Eclipse AJDT and can be viewed online
or downloaded with the AspectJ release.

Wes

http://www.eclipse.org/aspectj/doc/released/progguide/index.html
http://www.eclipse.org/aspectj/doc/released/index.html
http://www.eclipse.org/aspectj/downloads.php

> ------------Original Message------------
> From: "Ron Bodkin" <rbodkin@xxxxxxxxxxxxxx>
> To: "'AspectJ Development Tools developer discussions'" <ajdt-dev@xxxxxxxxxxx>
> Date: Fri, Apr-21-2006 9:46 AM
> Subject: RE: [ajdt-dev] is there a 'shortcut' for this?
>
> Hi Marco,
> 
> Yes, you almost had the answer: you want to use:
>   call(* getStockTrace*(..)) && !call(* getStockTraceHistory(..))
> 
> 
> ________________________________________
> From: ajdt-dev-bounces@xxxxxxxxxxx 
> [mailto:ajdt-dev-bounces@xxxxxxxxxxx] On
> Behalf Of Marco Mistroni
> Sent: Friday, April 21, 2006 6:04 AM
> To: AspectJ Development Tools developer discussions
> Subject: [ajdt-dev] is there a 'shortcut' for this?
> 
> hello all,
>  i have a bean which has followiing methods
> 
> getStockTracesForX
> getStockTracesZ
> getStockTracesForReport
> getStockTraceHistoryX
> 
> 
> i have to apply a pointcut to the first three methods but not for the 
> last 
> 
> i would do   
> 
> call ( * getStockTracesForX(..)) || call ( * getStockTracesZ(..)) ||  
> call (
> * getStockTracesForReport(..)) 
> 
> 
> i was wondering if i could instead do something like (pseudocode)
> 
> call (* getStockTrace*(..))   AND EXCLUDE getStockTraceHistory 
> 
> 
> is that possible?
> 
> regards
>  marco
> 
> _______________________________________________
> ajdt-dev mailing list
> ajdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ajdt-dev
> 



Back to the top