summaryrefslogtreecommitdiffstats
path: root/tests/harness/ajctest/Aspect.java
blob: dddacf69aff638e8b36a7c469b4e388684878b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
import org.aspectj.lang.*;
import org.aspectj.lang.reflect.*;

aspect Aspect {
    before() : execution(public * (!java..*).*(..)) {
        SourceLocation sl = thisJoinPointStaticPart.getSourceLocation();
        String s = thisJoinPoint + "@" + sl.getFileName() + ":" + sl.getLine();
        System.err.println(s);
    }
}