選択できるのは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. }