public class TypeVarUseApplier extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
accepts(AnnotatedTypeMirror type,
Element element)
Returns true if type is an AnnotatedTypeVariable, or an AnnotatedArrayType with a type
variable component, and the element is not a TYPE_PARAMETER.
|
static void |
apply(AnnotatedTypeMirror type,
Element element,
AnnotatedTypeFactory typeFactory) |
void |
extractAndApply()
Applies the bound annotations from the declaration of the type parameter and then applies the
explicit annotations written on the type variable.
|
public static void apply(AnnotatedTypeMirror type, Element element, AnnotatedTypeFactory typeFactory) throws ElementAnnotationUtil.UnexpectedAnnotationLocationException
public static boolean accepts(AnnotatedTypeMirror type, Element element)
public void extractAndApply() throws ElementAnnotationUtil.UnexpectedAnnotationLocationException
ElementAnnotationUtil.UnexpectedAnnotationLocationException
- if invalid location for an annotation was found