1 2 3 4 5 6 7 8 9 10 11
import java.lang.annotation.*; @Retention(RetentionPolicy.RUNTIME) public @interface TestAnnotation { public enum TestEnumOne { A, B } public enum TestEnumTwo { C, D } public TestEnumOne one(); public TestEnumTwo two(); public String strVal(); }