public interface AnnotationConverter<Q>
DefaultQualifiedTypeFactory
component for converting annotations
written in source code into type qualifiers. Each type system must provide
an implementation of this interface that converts the annotations relevant
to that type system into an instance of the type system's qualifier
representation.Modifier and Type | Method and Description |
---|---|
Q |
fromAnnotations(Collection<? extends AnnotationMirror> annos)
Performs type system-specific annotation parsing to produce a type
qualifier.
|
boolean |
isAnnotationSupported(AnnotationMirror anno)
Checks if an annotation is supported by the current type system.
|
Q fromAnnotations(Collection<? extends AnnotationMirror> annos)
annos
- the collection of type annotations to parseboolean isAnnotationSupported(AnnotationMirror anno)
AnnotationMirror
could affect the result of fromAnnotations
.anno
- the annotation to check