public class QualifierDefaults extends Object
DefaultQualifier
annotation.DefaultQualifier
Modifier and Type | Class and Description |
---|---|
static class |
QualifierDefaults.DefaultApplier |
Constructor and Description |
---|
QualifierDefaults(Elements elements,
AnnotatedTypeFactory atypeFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addAbsoluteDefault(AnnotationMirror absoluteDefaultAnno,
DefaultLocation location)
Sets the default annotations.
|
void |
addElementDefault(Element elem,
AnnotationMirror elementDefaultAnno,
DefaultLocation location)
Sets the default annotations for a certain Element.
|
void |
annotate(Element elt,
AnnotatedTypeMirror type)
Applies default annotations to a type given an
Element . |
void |
annotate(Tree tree,
AnnotatedTypeMirror type)
Applies default annotations to a type given a
Tree . |
public QualifierDefaults(Elements elements, AnnotatedTypeFactory atypeFactory)
factory
- the factory for this checkerannoFactory
- an annotation factory, used to get annotations by namepublic void addAbsoluteDefault(AnnotationMirror absoluteDefaultAnno, DefaultLocation location)
public void addElementDefault(Element elem, AnnotationMirror elementDefaultAnno, DefaultLocation location)
public void annotate(Element elt, AnnotatedTypeMirror type)
Element
.elt
- the element from which the type was obtainedtype
- the type to annotatepublic void annotate(Tree tree, AnnotatedTypeMirror type)
Tree
.tree
- the tree from which the type was obtainedtype
- the type to annotate