checkers.quals
Annotation Type ImplicitFor
@Retention(value=RUNTIME)
@Target(value=ANNOTATION_TYPE)
public @interface ImplicitFor
A meta-annotation that specifies the trees and types for which the framework
should automatically add that qualifier. These types and trees can be
specified via any combination of four fields.
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."
trees
public abstract Tree.Kind[] trees
- Returns:
Tree.Kind
s of trees for which an annotation should be
implicitly added
- Default:
- {}
treeClasses
public abstract Class<? extends Tree>[] treeClasses
- Returns:
Class
es of trees for which an annotation should be
implicitly added
- Default:
- {}
types
public abstract TypeKind[] types
- Returns:
TypeKind
s of types for which an annotation should be
implicitly added
- Default:
- {}
typeClasses
public abstract Class<? extends AnnotatedTypeMirror>[] typeClasses
- Returns:
Class
es of types for which an annotation should be
implicitly added
- Default:
- {}
stringPatterns
public abstract String[] stringPatterns
- Returns:
- Regular expressions of string literals, the types of which
an annotation should be implicitly added
- Default:
- {}