Attribute indicating what elements an attribute may be applied to.
This is checked at runtime. If the attribute is absent, it defaults
to Target.ALL.
This attribute is intended to be used with attribute classes:
/ **
* MyAttribute can only be applied to classes and fields, not methods.
* @@Target(Target.CLASS | Target.FIELD)
* /
public class MyAttribute { ... }
This attribute is intended to be used with attribute classes: