blob: 9eb9506771fbc3b9d606d69176445810777d2bf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// CaseNine - everything in different packages
package p.q.r;
import java.lang.annotation.*;
import a.b.c.Anno;
import x.y.z.Level;
public class CaseNine {
public static void main(String []argv) {
CaseNine o = new CaseNine();
o.a();
o.b();
o.c();
o.d();
o.e();
}
public void a() {}
@Anno(Level.NONE) public void b() {}
@Anno(Level.ONE) public void c() {}
@Anno(Level.TWO) public void d() {}
@Anno(Level.THREE) public void e() {}
}
aspect X {
before(Level l): execution(@Anno !@Anno(Level.NONE) * *(..)) && @annotation(Anno(l)) {
System.out.println(l);
}
}
|