Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Type patterns & values of annotation properties?

Can type patterns match on values of properties of annotations?

For example, given this ITD & classes:

declare parents:
  (@Foo(clazz=Number+) *)
  implements Fooable<Integer>;

@Foo(clazz=Long.class)
public class Thingy {}

@Foo(clazz=String.class)
public class Stringy {}

Can I write a type pattern that matches for Thingy but not Stringy
based only on the value of the "@Foo" annotation's "clazz" property?

-matthew

-- 
@matthewadams12
mailto:matthew@xxxxxxxxxxxxxxx
skype:matthewadams12
yahoo:matthewadams
aol:matthewadams12
google-talk:matthewadams12@xxxxxxxxx
msn:matthew@xxxxxxxxxxxxxxx
http://matthewadams.me
http://www.linkedin.com/in/matthewadams


Back to the top