您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112
  1. package pkg;
  2. public aspect A {
  3. before() : execution(* pack.C.method1()) && this(pack.C) {
  4. System.err.println("before exec method1 and this is C");
  5. }
  6. before() : call(* pack.C.method2()) && target(pack.C) {
  7. System.err.println("before call to method2 and target is C");
  8. }
  9. }