|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcheckers.types.TypeFromElement
public class TypeFromElement
A utility class used to extract the annotations from an element and inserts them into the elements type.
| Constructor Summary | |
|---|---|
TypeFromElement()
|
|
| Method Summary | |
|---|---|
static void |
annotate(AnnotatedTypeMirror.AnnotatedDeclaredType type,
TypeElement element)
Extracts type annotations from the element and inserts them into the type of the element. |
static void |
annotate(AnnotatedTypeMirror.AnnotatedExecutableType type,
ExecutableElement element)
Extracts type annotations from the element and inserts them into the type of the element. |
static void |
annotate(AnnotatedTypeMirror type,
Element element)
Extracts type annotations from the element and inserts them into the type of the element. |
static void |
annotate(AnnotatedTypeMirror type,
VariableElement 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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeFromElement()
| Method Detail |
|---|
public static void annotate(AnnotatedTypeMirror type,
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 parameter
public static void annotate(AnnotatedTypeMirror type,
VariableElement element)
type - the type of the fieldelement - the element of a field
public static void annotate(AnnotatedTypeMirror.AnnotatedDeclaredType type,
TypeElement element)
type - the type of the class/interfaceelement - the element of a class/interface
public static void annotateSupers(List<AnnotatedTypeMirror.AnnotatedDeclaredType> supertypes,
TypeElement element)
public static void annotate(AnnotatedTypeMirror.AnnotatedExecutableType type,
ExecutableElement element)
type - the type of the methodelement - the element of a method
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||