public class QualifierDefaults
extends java.lang.Object
DefaultQualifier
annotation.DefaultQualifier
Modifier and Type | Class and Description |
---|---|
static class |
QualifierDefaults.DefaultApplierElement |
Constructor and Description |
---|
QualifierDefaults(javax.lang.model.util.Elements elements,
AnnotatedTypeFactory atypeFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addAbsoluteDefault(javax.lang.model.element.AnnotationMirror absoluteDefaultAnno,
DefaultLocation location)
Sets the default annotations.
|
void |
addAbsoluteDefaults(javax.lang.model.element.AnnotationMirror absoluteDefaultAnno,
DefaultLocation[] locations) |
void |
addElementDefault(javax.lang.model.element.Element elem,
javax.lang.model.element.AnnotationMirror elementDefaultAnno,
DefaultLocation location)
Sets the default annotations for a certain Element.
|
void |
annotate(javax.lang.model.element.Element elt,
AnnotatedTypeMirror type)
Applies default annotations to a type given an
Element . |
void |
annotate(com.sun.source.tree.Tree tree,
AnnotatedTypeMirror type)
Applies default annotations to a type given a
Tree . |
public QualifierDefaults(javax.lang.model.util.Elements elements, AnnotatedTypeFactory atypeFactory)
elements
- interface to Element data in the current processing environmentatypeFactory
- an annotation factory, used to get annotations by namepublic void addAbsoluteDefault(javax.lang.model.element.AnnotationMirror absoluteDefaultAnno, DefaultLocation location)
public void addAbsoluteDefaults(javax.lang.model.element.AnnotationMirror absoluteDefaultAnno, DefaultLocation[] locations)
public void addElementDefault(javax.lang.model.element.Element elem, javax.lang.model.element.AnnotationMirror elementDefaultAnno, DefaultLocation location)
public void annotate(javax.lang.model.element.Element elt, AnnotatedTypeMirror type)
Element
.elt
- the element from which the type was obtainedtype
- the type to annotatepublic void annotate(com.sun.source.tree.Tree tree, AnnotatedTypeMirror type)
Tree
.tree
- the tree from which the type was obtainedtype
- the type to annotate