您最多选择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 {}