ミラー元
https://github.com/eclipse-aspectj/aspectj.git
前回の同期 2024-08-27 05:54:38 +02:00
21 行
460 B
Java
21 行
460 B
Java
public class ThisJoinPointAssignments {
|
|
public static void main(String[] args) {
|
|
new ThisJoinPointAssignments().realMain(args);
|
|
}
|
|
public void realMain(String[] args) {
|
|
new C().f();
|
|
org.aspectj.testing.Tester.check(A.jp != null, "Didn't set the JoinPoint");
|
|
}
|
|
}
|
|
|
|
class C {
|
|
public void f() {}
|
|
}
|
|
|
|
aspect A {
|
|
static org.aspectj.lang.JoinPoint jp;
|
|
before(): call(void C.f()) {
|
|
jp = thisJoinPoint;
|
|
}
|
|
}
|