123456789101112131415161718192021222324252627 |
- import java.lang.annotation.*;
-
- @Retention(RetentionPolicy.RUNTIME)
- @interface Anno {
- int i();
- }
-
- public class D {
-
- @Anno(i=3)
- public int i;
-
- @Anno(i=4)
- public int j;
-
- @Anno(i=5)
- public int k;
-
- public static void main(String []argv) {
- System.out.println(new D().i);
- System.out.println(new D().j);
- System.out.println(new D().k);
- }
- }
- aspect X {
- before(): get(@Anno(i!=5) * *) {}
- }
|