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.

AspectFromHell.java 514B

123456789101112131415161718192021222324
  1. import java.util.*;
  2. public aspect AspectFromHell {
  3. public void Foo.m1() {}
  4. public int Foo.m2() {return 2;}
  5. public void Foo.m3(String s) {}
  6. public Foo.new(String s) {super();}
  7. public int Foo.x;
  8. public List Foo.y;
  9. before(): execution(void Goo.m1()) {}
  10. after(): execution(void Goo.m2(String)) { System.err.println(thisJoinPoint);}
  11. void around(int i): execution(void Goo.m3(..)) && args(i) { }
  12. class Goo {
  13. void m1() {}
  14. void m2(String s) {}
  15. void m3(int i) {}
  16. }
  17. }
  18. class Foo { }