This "template" is how you do it in AspectJ.
Declare Interface:
interface Holder {}
Make your intertype declarations in an interface:
public int Holder.getMeAnInt() {
return 42;
}
, " ". , getMeAnInt(), Holder, getMeAnInt(), .
, , , :
declare parents: @Anno * implements Holder;
, , @Anno, Holder getMeAnInt().