@Retention(value=RUNTIME) @Target(value=ANNOTATION_TYPE) public @interface ImplicitFor
For example, the Nullable
annotation is annotated
with
@ImplicitFor(trees={Tree.Kind.NULL_LITERAL})to denote that the framework should automatically apply
Nullable
to all instances
of "null."Modifier and Type | Optional Element and Description |
---|---|
LiteralKind[] |
literals |
String[] |
stringPatterns |
Class<?>[] |
typeNames |
TypeKind[] |
types |
public abstract LiteralKind[] literals
LiteralKind
s for which an annotation should be
implicitly addedpublic abstract String[] stringPatterns