| Constructor and Description |
|---|
TypeFromElement() |
| Modifier and Type | Method and Description |
|---|---|
static void |
annotate(@Mutable AnnotatedTypeMirror type,
@Nullable Element element)
Extracts type annotations from the element and inserts them into the
type of the element.
|
static void |
annotateSupers(List<AnnotatedTypeMirror.AnnotatedDeclaredType> supertypes,
TypeElement element) |
public static void annotate(@Mutable AnnotatedTypeMirror type, @Nullable Element element)
TypeElement of a class or an interface
2. ExecutableElement of a method or a constructor
3. VariableElement of a field or a method parameter
4. TypeParameterElement of a method or a class type parameterpublic static void annotateSupers(List<AnnotatedTypeMirror.AnnotatedDeclaredType> supertypes, TypeElement element)