aboutsummaryrefslogtreecommitdiffstats
path: root/weaver/testdata/forAsmDelegateTesting/AspectFromHell.java
blob: def65b428d8d172dd161669ed0c72fae61f8ebea (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
import java.util.*;

public aspect AspectFromHell {

  public void Foo.m1() {}
  public int Foo.m2() {return 2;}
  public void Foo.m3(String s) {}
  public Foo.new(String s) {super();}
  public int Foo.x;
  public List Foo.y;


  before(): execution(void Goo.m1()) {}
  after(): execution(void Goo.m2(String)) { System.err.println(thisJoinPoint);}
  void around(int i): execution(void Goo.m3(..)) && args(i) { }

  class Goo {
    void m1() {}
    void m2(String s) {}
    void m3(int i) {}
  }
}

  class Foo { }