1 2 3 4 5 6 7 8 9 10 11 12
import java.lang.annotation.*; import java.lang.Enum; public aspect EnumAspect04 { interface I {}; //declare parents: SimpleE* implements I; //declare parents: !*Aspect04 implements I; declare parents: @Foo * implements I; } @Retention(RetentionPolicy.RUNTIME) @interface Foo {}