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.

PR113447b.java 502B

123456789101112131415161718192021222324252627
  1. import java.lang.annotation.Retention;
  2. import java.lang.annotation.RetentionPolicy;
  3. @Retention(RetentionPolicy.RUNTIME)
  4. @interface Annotation{};
  5. @Annotation
  6. public class PR113447b {
  7. public static void main(String[] args) {
  8. PR113447b me = new PR113447b();
  9. me.method4(1);
  10. }
  11. public void method4(int i){}
  12. public void method5(int i){}
  13. }
  14. aspect Super {
  15. pointcut p(Annotation a) :
  16. @within(a) && (call(void method4(int))
  17. || call(void method5(int)));
  18. before(Annotation a) : p(a) {}
  19. }