My spontaneous impulse upon reading the sugared variant was to dislike it more 
than the other one which at least bears schematic similarity to known method 
parameter matching patterns.

Alexander Kriegisch

Am 05.04.2013 um 21:53 schrieb Andy Clement <andrew.clem...@gmail.com>:

> As we kind of chatted about earlier on Skype, I don't think you can do this 
> right now. The support for annotation array values isn't all in place and 
> even then the support for class literal annotation values isn't all there 
> either. There is so much to annotations that the various use cases are 
> addressed as they come up. You seem to have come up with this one so it is 
> time to look at filling it in.
> 
> The syntax for matching one element of an array value is probably something 
> like you propose:
> 
> declare parents: (@Gimme(value = {..,Serializable.class,..}) *) implements 
> Serializable;
> 
> even though I don't really like the look of it.
> 
> But perhaps a syntax sugared variant of:
> 
> declare parents: (@Gimme(value = Serializable.class) *) implements 
> Serializable;
> 
> would be OK for a single value being located, even though strictly speaking 
> '=' is wrong and it should be something that suggests 'contains/includes'. 
> (I'm open to suggestions).
> 
> cheers,
> Andy
> 
> 
> On 5 April 2013 09:21, Matthew Adams <matt...@matthewadams.me> wrote:
>> Dunno.  I used Nabble's "raw" tags.  I'll reply to original post without
>> them.
>> 
>> 
>> 
>> --
>> View this message in context: 
>> http://aspectj.2085585.n4.nabble.com/Matching-on-one-of-an-annotation-s-values-in-a-multivalued-property-tp4650839p4650841.html
>> Sent from the AspectJ - users mailing list archive at Nabble.com.
>> _______________________________________________
>> aspectj-users mailing list
>> aspectj-users@eclipse.org
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to