blob: fe9e45f812db2a18cf258339b515ae4dc52b4022 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import org.aspectj.lang.annotation.*;
public class IdentifiableMixin implements MyAspect.IIdentifiable {
private String id;
public String getPlatformId() {
return id;
}
}
@Aspect
class MyAspect {
public interface IIdentifiable {
String getPlatformId();
}
@DeclareMixin("!is(InterfaceType) && !is(EnumType)")
public static IIdentifiable createIIdentifiable() {
return new IdentifiableMixin();
}
}
|