mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-19 02:10:14 +02:00
17 lines
255 B
Java
17 lines
255 B
Java
// HasMethod with anno value matching
|
|
|
|
@interface I {
|
|
boolean b();
|
|
}
|
|
aspect A {
|
|
declare parents: hasmethod(@I(b=true) * *(..)) implements java.io.Serializable;
|
|
}
|
|
|
|
class B {
|
|
@I(b=true) public void m() {}
|
|
}
|
|
class C {
|
|
@I(b=false) public void m() {}
|
|
}
|
|
|