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.

Aspect.aj 576B

123456789101112131415161718
  1. public aspect Aspect {
  2. //:method-call(void Foo.method1())=real
  3. //:(virtual) method-call(void Foo.method2())=virtual
  4. pointcut calls(): call(* Foo.*(..));
  5. //:(virtual) method-call(void Bar.bar())=virtual
  6. pointcut callBar():call(* Bar.*(..));
  7. //:method-call(void Foo.method1())=real
  8. //:(virtual) method-call(void Foo.method2())=virtual
  9. pointcut callsWithin(): call(* Foo.*(..)) && within(Bar);
  10. //:method-call(void Foo.method1())=real
  11. //:(virtual) method-call(void Foo.method2())=virtual
  12. pointcut callsWithincode(): call(* Foo.*(..))&&withincode(* Bar.*(..));
  13. }