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.

12345678910111213141516171819
  1. aspect A2 {
  2. after(Object thisObject): target(thisObject) && execution(public * Hello.*(..)) {
  3. }
  4. after(Object thisObject): this(thisObject) && execution(* Hello.*(..)) {
  5. System.out.println(thisObject);
  6. }
  7. after() returning (String s): execution(* Hello.*(..)) {
  8. //System.out.println(s);
  9. }
  10. }
  11. class Hello {
  12. public static void main(String[] args) {
  13. System.out.println("hello");
  14. }
  15. void m() {
  16. }
  17. }