镜像来自
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-18 02:11:48 +02:00
16 line
295 B
Java
16 line
295 B
Java
public class MethodCall {
|
|
// static String abc = "hello world";
|
|
public static void main(String []argv) {
|
|
System.out.println(Inner.m());
|
|
}
|
|
}
|
|
|
|
aspect X {
|
|
public static class MethodCall.Inner {
|
|
static int number = 42;
|
|
public static Integer m() {
|
|
return number;
|
|
}
|
|
}
|
|
}
|