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.

AspectInheritance1.java 363B

1234567891011121314151617181920
  1. public class AspectInheritance1 {
  2. public static void main(String[] args) {
  3. }
  4. }
  5. abstract aspect Base {
  6. abstract pointcut targets(int i, C c);
  7. after(int i, C c): targets(i, c) {
  8. //
  9. }
  10. }
  11. aspect EmptyConcrete extends Base {
  12. // this would match everything, but we declare it a syntax error
  13. pointcut targets(int i, C c): ;
  14. }
  15. class C {}