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