Are there such things as Java annotations that aren't tied to any class, method, field, etc.?
Like just writing
@MyAnnotation(someParameter=value, ...)
by itself, and it generates code.
It seems like ExecutableType
might define what kinds of "elements" an annotation can annotate, but I'm not sure. If that's true, then ExecutableType
derives from TypeMirror
, one of whose members are NoType
. So maybe it's possible? But I cannot find an example of this.