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 |
---|---|
String[] |
stringPatterns |
Class<? extends @Nullable Tree>[] |
treeClasses |
Tree.Kind[] |
trees |
Class<? extends @Mutable AnnotatedTypeMirror>[] |
typeClasses |
TypeKind[] |
types |
public abstract Tree.Kind[] trees
Tree.Kind
s of trees for which an annotation should be
implicitly addedpublic abstract Class<? extends @Nullable Tree>[] treeClasses
Class
es of trees for which an annotation should be
implicitly addedpublic abstract TypeKind[] types
TypeKind
s of types for which an annotation should be
implicitly addedpublic abstract Class<? extends @Mutable AnnotatedTypeMirror>[] typeClasses
Class
es of types for which an annotation should be
implicitly addedpublic abstract String[] stringPatterns