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.

PR65319.java 632B

123456789101112131415161718192021222324252627282930
  1. class Test
  2. {
  3. public static void main(String args[]) {
  4. new Test().method();
  5. }
  6. public void method() {
  7. new Test2().method2();
  8. }
  9. public void method3() {
  10. new Test2().method3(new Test());
  11. }
  12. public void method4(Test t) {
  13. new Test().method4(new Test());
  14. }
  15. }
  16. class Test2 {
  17. public void method2() {}
  18. public void method3(Test t) {}
  19. }
  20. aspect Plain {
  21. before(Test x): call(void *.* (..)) && (target(x) || this(x)) {}
  22. before(Test x): call(void *.* (..)) && (this(x) || target(x)){}
  23. before(Test x): call(void *.*(..)) && (this(x) || args(x)) {}
  24. before(Test x): call(void *.*(..)) && (args(x) || target(x)) {}
  25. }