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

Aspect120.java 514B

123456789101112131415161718192021
  1. // Aspect should be built with AspectJ 1.2.0 into aspects120.jar
  2. // We are testing the new AspectJ can recognize old aspects
  3. public aspect Aspect120 {
  4. pointcut anyMethodCall(): execution(* main(..));
  5. pointcut setIntField(): set(int *);
  6. pointcut complex(): call(* *(..)) && cflow(execution(* toplevel(..)));
  7. pointcut moreComplex(): call(* *(..)) && !(call(* foo*(..)) || call(* bar*(..)));
  8. before(): complex() { }
  9. after(): complex() { }
  10. void around(): anyMethodCall() {
  11. proceed();
  12. }
  13. }