aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/testdata/src1/p1/A.java
blob: be6b96b2f7a18190a4e3720bdd9f311cb0ec1465 (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
aspect A {
    public void m(int x) {
        System.out.println(x);
    }

    pointcut foo(String[] args): args(args) && execution(void Hello.*(..));

    before(): execution(* Hello.*(..)) {
        System.out.println("enter");
    }

    public int Hello.fromA;

    public void pingHello(Hello h) {
        int x = 2; 
        System.out.println(x);
    }

}

class Hello {
    public static void main(String[] args) {
    }
}

interface I {
    //void foo();
}