Annotation Type EnumVal
-
@Documented @Retention(RUNTIME) @Target({TYPE_PARAMETER,TYPE_USE}) public @interface EnumValAn annotation indicating the possible values for an enum type. If an expression's type has this annotation, then at run time, the expression evaluates to one of the enum values named by the arguments. EnumVal uses the simple name of the enum value: the EnumVal type corresponding toMyEnum.MY_VALUEis@EnumVal("MY_VALUE").This annotation is treated as
StringValinternally by the Constant Value Checker.- See the Checker Framework Manual:
- Constant Value Checker
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String[]valueThe simple names of the possible enum values for an expression with the annotated type.
-