summaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/binding/complexExample/X2.java
blob: 717f8010821066d271b8a2669827c2f205d577ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Same as X but includes annotation binding
import d.e.f.Color;

public aspect X2 {

  before(Color c): call(* *(..)) && @annotation(c) {
    System.err.println("Before call to "+thisJoinPoint+" color is "+c);
  }
  
  before(Color c): execution(* *(..)) && @annotation(c) {
    System.err.println("Before execution of "+thisJoinPoint+" color is "+c);
  }

}