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.

TJP.aj 804B

12345678910111213141516171819202122232425262728293031323334
  1. public aspect TJP {
  2. pointcut run () :
  3. execution(public void *.run());
  4. before () : run () {
  5. System.out.println("? TJP.execRun() thisJoinPointStaticPart=" + thisJoinPointStaticPart);
  6. }
  7. pointcut write () :
  8. call(public void *.run());
  9. before () : write () {
  10. System.out.println("? TJP.callRun() thisJoinPointStaticPart=" + thisJoinPointStaticPart);
  11. }
  12. before () : write () {
  13. System.out.println("? TJP.callRun() thisEnclosingJoinPointStaticPart=" + thisEnclosingJoinPointStaticPart);
  14. }
  15. pointcut getI () :
  16. get(int i);
  17. before () : getI () {
  18. System.out.println("? TJP.getI() thisJoinPoint=" + thisJoinPoint);
  19. }
  20. pointcut setI () :
  21. set(int i);
  22. before () : setI () {
  23. System.out.println("? TJP.setI() thisJoinPoint=" + thisJoinPoint);
  24. }
  25. }