[macker-user] Re: Macker-user digest, Vol 1 #25 - 1 msg
Brought to you by:
barredijkstra,
melquiades
From: Michael S. <MS...@in...> - 2005-10-19 14:34:55
|
Hi I found a solution for this a while back that is clunky but will work. Underlying the idea is that if you have tow sets A and B and want to now the set of A AND B you can write this also as A AND B = (A+B) - ( (A - B) + (B-A) The operations "-" and "+" relate to exclude and include operations in Macker. So, as a result you can express your problem as <pattern name="classes-implementing-only-Alpha"> <include filter="subtype-of" class="Alpha" /> <exclude filter="subtype-of" class="Beta" /> </pattern> <pattern name="classes-implementing-only-Beta"> <include filter="subtype-of" class="Beta" /> <exclude filter="subtype-of" class="Alpha" /> </pattern> <pattern name="classes-implementing-only-Beta"> <include filter="subtype-of" class="Alpha" /> <include filter="subtype-of" class="Beta" /> <include pattern="classes-implementing-only-Alpha" /> <include pattern="classes-implementing-only-Beta" /> </pattern> Michael mac...@li... Sent by: mac...@li... 10/18/2005 11:38 PM Please respond to mac...@li... To mac...@li... cc Subject Macker-user digest, Vol 1 #25 - 1 msg Send Macker-user mailing list submissions to mac...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/macker-user or, via email, send a message with subject or body 'help' to mac...@li... You can reach the person managing the list at mac...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Macker-user digest..." Today's Topics: 1. detect class that implements 2 interfaces (Etienne Studer) --__--__-- Message: 1 Date: Tue, 18 Oct 2005 20:12:46 -0700 From: Etienne Studer <eti...@ca...> To: mac...@li... Subject: [macker-user] detect class that implements 2 interfaces Hi What kind of macker rule do I have to write to detect all classes that implement interface Alpha AND interface Beta. For example, class X implements Alpha, Beta { ... } Thanks for any help. --Etienne P.S. Btw, macker is awesome and we couldn't be without it anymore! --__--__-- _______________________________________________ Macker-user mailing list Mac...@li... https://lists.sourceforge.net/lists/listinfo/macker-user Macker home page: http://innig.net/macker/ End of Macker-user Digest |