選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

LTWMethodITD.aj 537B

12345678910111213141516171819202122
  1. import java.util.List;
  2. public privileged aspect LTWMethodITD {
  3. public String LTWHelloWorld.getMessage () {
  4. return message;
  5. }
  6. public void LTWHelloWorld.setMessage (String newMessage) {
  7. message = newMessage;
  8. }
  9. pointcut init (LTWHelloWorld hw) :
  10. execution(LTWHelloWorld.new()) && this(hw);
  11. after (LTWHelloWorld hw) : init (hw) {
  12. System.err.println("LTWMethodITD.init(" + thisJoinPointStaticPart + ")");
  13. hw.getMessage();
  14. hw.setMessage("Hello LTWMethodITD");
  15. hw.add(getClass().getName());
  16. }
  17. }