aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/testdata/src1/A2.java
blob: c8fd65aa76f68934105693c39eaec2624ff6e66a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
aspect A2 {
    after(Object thisObject): target(thisObject) && execution(public * Hello.*(..)) {
    }
    after(Object thisObject): this(thisObject) && execution(* Hello.*(..)) {
        System.out.println(thisObject);
    }
    after() returning (String s): execution(* Hello.*(..)) {
        //System.out.println(s);
    }
}

class Hello {
    public static void main(String[] args) {
        System.out.println("hello");
    }

    void m() {
    }
}