mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-15 02:13:50 +02:00
17 lines
279 B
Java
17 lines
279 B
Java
class DoSomeWeaving {
|
|
public static void main(String[] argv) {
|
|
new DoSomeWeaving().sayHi();
|
|
}
|
|
|
|
|
|
public void sayHi() {
|
|
System.err.println("hi");
|
|
}
|
|
}
|
|
|
|
aspect A1 {
|
|
before(): call(* *(..)) && !within(A1) {
|
|
System.err.println("Just about to make a call");
|
|
}
|
|
}
|