mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-07-24 05:44:46 +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");
|
|
}
|
|
}
|