您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }