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

MyAspect.java 336B

1234567891011121314151617
  1. import org.aspectj.lang.annotation.*;
  2. @Aspect
  3. class MyAspect {
  4. public interface IIdentifiable {
  5. UUID getPlatformId();
  6. void setPlatformId(UUID id);
  7. }
  8. @DeclareMixin("!is(InterfaceType) && !is(EnumType)")
  9. public static IIdentifiable createIIdentifiable() {
  10. return new IdentifiableMixin();
  11. }
  12. }
  13. class UUID {}