aboutsummaryrefslogtreecommitdiffstats
path: root/taskdefs/testdata/DoSomeWeaving.java
blob: 352602d0022142909e220bb866ad00fb251b9fab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class DoSomeWeaving {
  public static void main(String[] argv) {
    new DoSomeWeaving().sayHi();
  }


  public void sayHi() {
    System.err.println("hi");
  }
}

aspect A1 {
  before(): call(* *(..)) && !within(A1) {
    System.err.println("Just about to make a call");
  }
}