Class Helpers
java.lang.Object
org.robolectric.annotation.processing.Helpers
public class Helpers extends Object
-
Constructor Summary
Constructors Constructor Description Helpers(ProcessingEnvironment environment) -
Method Summary
Modifier and Type Method Description voidappendParameterList(StringBuilder message, List<? extends TypeParameterElement> tpeList)ElementasElement(TypeMirror typeMirror)static intgetAnnotationIntValue(AnnotationValue av)static AnnotationMirrorgetAnnotationMirror(Types types, Element element, TypeElement annotation)static StringgetAnnotationStringValue(AnnotationValue av)static AnnotationValuegetAnnotationTypeMirrorValue(AnnotationMirror annotationMirror, String key)static TypeMirrorgetAnnotationTypeMirrorValue(AnnotationValue av)static TypeElementgetAnnotationTypeMirrorValue(Element el)TypeMirrorgetImplementedClass(AnnotationMirror am)static AnnotationMirrorgetImplementsMirror(Element elem, Types types, TypeElement typeElement)ElementgetPackageElement(String packageName)TypeElementgetTypeElement(String className)booleanisSameParameterList(List<? extends TypeParameterElement> l1, List<? extends TypeParameterElement> l2)
-
Constructor Details
-
Method Details
-
getAnnotationTypeMirrorValue
-
getAnnotationTypeMirrorValue
-
getAnnotationTypeMirrorValue
public static AnnotationValue getAnnotationTypeMirrorValue(AnnotationMirror annotationMirror, String key) -
getAnnotationStringValue
-
getAnnotationIntValue
-
getAnnotationMirror
public static AnnotationMirror getAnnotationMirror(Types types, Element element, TypeElement annotation) -
getImplementsMirror
public static AnnotationMirror getImplementsMirror(Element elem, Types types, TypeElement typeElement) -
isSameParameterList
public boolean isSameParameterList(List<? extends TypeParameterElement> l1, List<? extends TypeParameterElement> l2) -
getImplementedClass
-
appendParameterList
public void appendParameterList(StringBuilder message, List<? extends TypeParameterElement> tpeList) -
getPackageElement
-
asElement
-
getTypeElement
-