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.

Tester.aj 355B

12345678910111213141516171819202122232425
  1. aspect Tester {
  2. before(): call(* Foo.*(..)) {
  3. System.out.println(thisEnclosingJoinPointStaticPart);
  4. }
  5. public static void main(String[] args) {
  6. new Foo().run();
  7. }
  8. }
  9. class Foo {
  10. int i = 5;
  11. public void run() {
  12. bar("abc");
  13. }
  14. public void bar(String s) {
  15. System.out.println("hello");
  16. i = 4;
  17. }
  18. }
  19. class MyException extends Exception {
  20. }