summaryrefslogtreecommitdiffstats
path: root/tests/new/options11/library1/Library1.java
blob: ce2a13067b912e1425012a7ea34186c7a84d6ff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package library1;

import org.aspectj.lang.JoinPoint;
import org.aspectj.testing.Tester;

public aspect Library1 {
    pointcut targetJoinPoints() : 
        //execution(public static void main(String[]));
        execution(public static void main(..));
    
    before() : targetJoinPoints() {
        Tester.event("before " + renderId(thisJoinPoint));
    }

    before() : targetJoinPoints() {
        Tester.event("after " + renderId(thisJoinPoint));
    }

    protected String renderId(JoinPoint jp) {
        return jp.getSignature().getName();
    }
}