Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627
  1. import java.lang.annotation.Retention;
  2. import java.lang.annotation.RetentionPolicy;
  3. @Retention(RetentionPolicy.RUNTIME)
  4. @interface Annotation{};
  5. public class PR113447c {
  6. @Annotation
  7. public static void main(String[] args) {
  8. PR113447c me = new PR113447c();
  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. @withincode(a) && (call(void method4(int))
  17. || call(void method5(int)));
  18. before(Annotation a) : p(a) {}
  19. }