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.

AroundAdvice.aj 392B

12345678910111213141516
  1. import java.lang.annotation.Retention;
  2. import java.lang.annotation.RetentionPolicy;
  3. @Retention(RetentionPolicy.RUNTIME)
  4. public @interface AroundAdvice { }
  5. aspect ErrorHandling {
  6. before(): !@annotation(AroundAdvice) && execution(* C.*(..)) { }
  7. }
  8. class C {
  9. public static void m1() {}
  10. @AroundAdvice public static void m2() {}
  11. public void m3() {}
  12. @AroundAdvice public void m4() {}
  13. }