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.

A1.java 466B

1234567891011121314151617181920212223
  1. aspect A1 {
  2. after() throwing (Throwable t): execution(* Hello.*(..)) {
  3. System.out.println("enter");
  4. }
  5. after() throwing: execution(* Hello.*(..)) {
  6. System.out.println("enter");
  7. }
  8. after() returning: execution(* Hello.*(..)) {
  9. System.out.println("enter");
  10. }
  11. after(): execution(void Hello.*ai*(..)) {
  12. }
  13. }
  14. class Hello {
  15. public static void main(String[] args) {
  16. System.out.println("hello");
  17. }
  18. }