You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Foo.java 421B

123456789101112131415161718192021222324252627
  1. import java.lang.annotation.*;
  2. @Retention(RetentionPolicy.RUNTIME)
  3. @interface Goo {}
  4. public class Foo {
  5. public static void main(String []argv) {
  6. new Foo().m();
  7. }
  8. @Goo
  9. public void m() {
  10. System.err.println("");
  11. }
  12. public void m2() {
  13. System.err.println("");
  14. }
  15. }
  16. aspect X {
  17. before(): call(* println(..)) && !@withincode(Goo) { }
  18. before(): call(* println(..)) && @withincode(Goo) { }
  19. }