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 void
appendParameterList(StringBuilder message, List<? extends TypeParameterElement> tpeList)
Element
asElement(TypeMirror typeMirror)
static int
getAnnotationIntValue(AnnotationValue av)
static AnnotationMirror
getAnnotationMirror(Types types, Element element, TypeElement annotation)
static String
getAnnotationStringValue(AnnotationValue av)
static AnnotationValue
getAnnotationTypeMirrorValue(AnnotationMirror annotationMirror, String key)
static TypeMirror
getAnnotationTypeMirrorValue(AnnotationValue av)
static TypeElement
getAnnotationTypeMirrorValue(Element el)
TypeMirror
getImplementedClass(AnnotationMirror am)
static AnnotationMirror
getImplementsMirror(Element elem, Types types, TypeElement typeElement)
Element
getPackageElement(String packageName)
TypeElement
getTypeElement(String className)
boolean
isSameParameterList(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
-