How can I make my frameworks MyAnnotation
have a user-defined enum type as the parameter?
Like @MyAnnotation(Colors.BLUE)
. Another, less idea solution would be @MyAnnotation(Colors.BLUE.getName())
.
Edit: as in the enum is user-specified. I tried Enum<?> value()
, but that didn't work