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.

D.java 409B

123456789101112131415161718192021222324252627
  1. import java.lang.annotation.*;
  2. @Retention(RetentionPolicy.RUNTIME)
  3. @interface Anno {
  4. int i();
  5. }
  6. public class D {
  7. @Anno(i=3)
  8. public int i;
  9. @Anno(i=4)
  10. public int j;
  11. @Anno(i=5)
  12. public int k;
  13. public static void main(String []argv) {
  14. System.out.println(new D().i);
  15. System.out.println(new D().j);
  16. System.out.println(new D().k);
  17. }
  18. }
  19. aspect X {
  20. before(): get(@Anno(i!=5) * *) {}
  21. }