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.

Pr104220.aj 509B

1234567891011121314151617181920212223242526272829
  1. // pr104220 - adviceexecution joinpoint toString forms
  2. public aspect Pr104220 {
  3. before() : adviceexecution() && !within(Pr104220) {
  4. System.out.println(thisJoinPoint.getKind());
  5. System.out.println(thisJoinPoint.toString());
  6. System.out.println(thisJoinPoint.toShortString());
  7. System.out.println(thisJoinPoint.toLongString());
  8. }
  9. public static void main(String[] args) {
  10. new C().foo();
  11. }
  12. }
  13. class C {
  14. public void foo() {}
  15. }
  16. aspect SomeAspect {
  17. before() : execution(* foo(..)) {}
  18. }