Class Helpers
java.lang.Object
org.robolectric.annotation.processing.Helpers
public class Helpers extends Object
-
Constructor Summary
Constructors Constructor Description Helpers(javax.annotation.processing.ProcessingEnvironment environment)
-
Method Summary
Modifier and Type Method Description void
appendParameterList(StringBuilder message, List<? extends javax.lang.model.element.TypeParameterElement> tpeList)
javax.lang.model.element.Element
asElement(javax.lang.model.type.TypeMirror typeMirror)
static int
getAnnotationIntValue(javax.lang.model.element.AnnotationValue av)
static javax.lang.model.element.AnnotationMirror
getAnnotationMirror(javax.lang.model.util.Types types, javax.lang.model.element.Element element, javax.lang.model.element.TypeElement annotation)
static String
getAnnotationStringValue(javax.lang.model.element.AnnotationValue av)
static javax.lang.model.element.AnnotationValue
getAnnotationTypeMirrorValue(javax.lang.model.element.AnnotationMirror annotationMirror, String key)
static javax.lang.model.type.TypeMirror
getAnnotationTypeMirrorValue(javax.lang.model.element.AnnotationValue av)
static javax.lang.model.element.TypeElement
getAnnotationTypeMirrorValue(javax.lang.model.element.Element el)
javax.lang.model.type.TypeMirror
getImplementedClass(javax.lang.model.element.AnnotationMirror am)
static javax.lang.model.element.AnnotationMirror
getImplementsMirror(javax.lang.model.element.Element elem, javax.lang.model.util.Types types, javax.lang.model.element.TypeElement typeElement)
javax.lang.model.element.Element
getPackageElement(String packageName)
javax.lang.model.element.TypeElement
getTypeElement(String className)
boolean
isSameParameterList(List<? extends javax.lang.model.element.TypeParameterElement> l1, List<? extends javax.lang.model.element.TypeParameterElement> l2)
-
Constructor Details
-
Helpers
public Helpers(javax.annotation.processing.ProcessingEnvironment environment)
-
-
Method Details
-
getAnnotationTypeMirrorValue
public static javax.lang.model.type.TypeMirror getAnnotationTypeMirrorValue(javax.lang.model.element.AnnotationValue av) -
getAnnotationTypeMirrorValue
public static javax.lang.model.element.TypeElement getAnnotationTypeMirrorValue(javax.lang.model.element.Element el) -
getAnnotationTypeMirrorValue
public static javax.lang.model.element.AnnotationValue getAnnotationTypeMirrorValue(javax.lang.model.element.AnnotationMirror annotationMirror, String key) -
getAnnotationStringValue
-
getAnnotationIntValue
public static int getAnnotationIntValue(javax.lang.model.element.AnnotationValue av) -
getAnnotationMirror
public static javax.lang.model.element.AnnotationMirror getAnnotationMirror(javax.lang.model.util.Types types, javax.lang.model.element.Element element, javax.lang.model.element.TypeElement annotation) -
getImplementsMirror
public static javax.lang.model.element.AnnotationMirror getImplementsMirror(javax.lang.model.element.Element elem, javax.lang.model.util.Types types, javax.lang.model.element.TypeElement typeElement) -
isSameParameterList
-
getImplementedClass
public javax.lang.model.type.TypeMirror getImplementedClass(javax.lang.model.element.AnnotationMirror am) -
appendParameterList
public void appendParameterList(StringBuilder message, List<? extends javax.lang.model.element.TypeParameterElement> tpeList) -
getPackageElement
-
asElement
public javax.lang.model.element.Element asElement(javax.lang.model.type.TypeMirror typeMirror) -
getTypeElement
-