public class QualifierDefaults extends @NonNull Object
DefaultQualifier
annotation.DefaultQualifier
Constructor and Description |
---|
QualifierDefaults(AnnotatedTypeFactory factory,
AnnotationUtils annoFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addAbsoluteDefault(@Nullable AnnotationMirror absoluteDefaultAnno,
Set<DefaultLocation> locations)
Sets the default annotation.
|
void |
annotate(@Nullable Element elt,
@Mutable AnnotatedTypeMirror type)
Applies default annotations to a type given an
Element . |
void |
annotate(@Nullable Tree tree,
@Mutable AnnotatedTypeMirror type)
Applies default annotations to a type given a
Tree . |
void |
annotateTypeElement(TypeElement elt,
@Mutable AnnotatedTypeMirror type) |
void |
setLocalVariableDefault(Set<@Nullable AnnotationMirror> localannos) |
public QualifierDefaults(AnnotatedTypeFactory factory, AnnotationUtils annoFactory)
factory
- the factory for this checkerannoFactory
- an annotation factory, used to get annotations by namepublic void addAbsoluteDefault(@Nullable AnnotationMirror absoluteDefaultAnno, Set<DefaultLocation> locations)
public void setLocalVariableDefault(Set<@Nullable AnnotationMirror> localannos)
public void annotateTypeElement(TypeElement elt, @Mutable AnnotatedTypeMirror type)
public void annotate(@Nullable Element elt, @Mutable AnnotatedTypeMirror type)
Element
.elt
- the element from which the type was obtainedtype
- the type to annotatepublic void annotate(@Nullable Tree tree, @Mutable AnnotatedTypeMirror type)
Tree
.tree
- the tree from which the type was obtainedtype
- the type to annotate