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

CflowConcrete.java 491B

12345678910111213141516171819
  1. // for Bug#: 31423
  2. import org.aspectj.testing.Tester;
  3. public class CflowConcrete {
  4. public static void main(String[] args) {
  5. }
  6. }
  7. aspect TestAjc {
  8. pointcut notMySelf(): !within(TestAjc) && !cflow(within(TestAjc));
  9. pointcut eachCall(): notMySelf() && call(* *.*(..));
  10. pointcut eachExecution(): notMySelf() && execution(* *.*(..)) ;
  11. before(): eachCall() { System.out.println(thisJoinPoint); }
  12. before(): eachExecution() { System.out.println(thisJoinPoint); }
  13. }