|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object checkers.util.QualifierDefaults
public class QualifierDefaults extends Object
Determines the default qualifiers on a type.
Default qualifiers are specified via the DefaultQualifier
annotation.
DefaultQualifier
Constructor and Description |
---|
QualifierDefaults(AnnotatedTypeFactory factory,
AnnotationUtils annoFactory)
|
Modifier and Type | Method and Description |
---|---|
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 . |
void |
annotateTypeElement(TypeElement elt,
AnnotatedTypeMirror type)
|
void |
setAbsoluteDefaults(AnnotationMirror absoluteDefaultAnno,
Set<DefaultLocation> locations)
Sets the default annotation. |
void |
setLocalDefault(AnnotationMirror localannot)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QualifierDefaults(AnnotatedTypeFactory factory, AnnotationUtils annoFactory)
factory
- the factory for this checkerannoFactory
- an annotation factory, used to get annotations by nameMethod Detail |
---|
public void setAbsoluteDefaults(AnnotationMirror absoluteDefaultAnno, Set<DefaultLocation> locations)
public void annotateTypeElement(TypeElement elt, AnnotatedTypeMirror type)
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 annotatepublic void setLocalDefault(AnnotationMirror localannot)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |