|
|||||||||
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
Determines the default qualifiers on a type. DefaultQualifier qualifiers are specified
via the DefaultQualifier
annotation.
DefaultQualifier
Constructor Summary | |
---|---|
QualifierDefaults(AnnotatedTypeFactory factory,
AnnotationUtils annoFactory)
|
Method Summary | |
---|---|
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 |
setAbsoluteDefaults(AnnotationMirror absoluteDefaultAnno,
Set<DefaultLocation> locations)
Sets the absolute default annotation in case a class does specify a default |
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 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |