public class QualifierUpperBounds extends Object
| Constructor and Description |
|---|
QualifierUpperBounds(AnnotatedTypeFactory typeFactory)
Creates a
QualifierUpperBounds from the given checker, using that checker to determine
the annotations that are in the type hierarchy. |
| Modifier and Type | Method and Description |
|---|---|
void |
addType(Class<?> type,
AnnotationMirror theQual)
Add default qualifier,
theQual, for the given class. |
void |
addTypeKind(TypeKind typeKind,
AnnotationMirror theQual)
Add default qualifier,
theQual, for the given TypeKind. |
protected Set<AnnotationMirror> |
getAnnotationFromElement(Element element)
Returns the explicit annotations on the element.
|
Set<AnnotationMirror> |
getBoundQualifiers(TypeMirror type)
Returns the set of qualifiers that are the upper bounds for a use of the type.
|
public QualifierUpperBounds(AnnotatedTypeFactory typeFactory)
QualifierUpperBounds from the given checker, using that checker to determine
the annotations that are in the type hierarchy.public void addTypeKind(TypeKind typeKind, AnnotationMirror theQual)
theQual, for the given TypeKind.public void addType(Class<?> type, AnnotationMirror theQual)
theQual, for the given class.public Set<AnnotationMirror> getBoundQualifiers(TypeMirror type)
type - the TypeMirrorprotected Set<AnnotationMirror> getAnnotationFromElement(Element element)
element - element whose annotations to return