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.

Aspect.java 468B

1234567891011121314151617181920212223242526
  1. package p.q.r;
  2. import java.lang.annotation.*;
  3. aspect Asp {
  4. declare parents: C implements p.q.r.Int;
  5. declare parents: C implements Int;
  6. declare @type: C: @Foo;
  7. declare @type: C: @p.q.r.Goo;
  8. declare @field: int C.i: @Foo;
  9. declare @method: void C.m(): @Foo;
  10. declare @constructor: new(): @Foo;
  11. }
  12. @Retention(RetentionPolicy.RUNTIME) @interface Foo {}
  13. @Retention(RetentionPolicy.RUNTIME) @interface Goo {}
  14. interface Int {}
  15. class C {
  16. int i;
  17. void m() {}
  18. C() {}
  19. }