123456789101112131415161718192021222324252627 |
- import java.lang.annotation.*;
-
- @Retention(RetentionPolicy.RUNTIME)
- @interface Goo {}
-
-
- @Goo
- public class Doo {
- public static void main(String []argv) {
- new Doo().m(); // advises here
- }
-
- public void m() {
- System.err.println("");
- }
- }
-
- class Soo {
- public void m() {
- System.err.println("");
- }
- }
-
- aspect X {
- before(): call(* println(..)) && !@within(Goo) {
- }
- }
|