public class Helpers extends Object
Constructor | Description |
---|---|
Helpers(javax.annotation.processing.ProcessingEnvironment environment) |
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) |
public Helpers(javax.annotation.processing.ProcessingEnvironment environment)
public static javax.lang.model.type.TypeMirror getAnnotationTypeMirrorValue(javax.lang.model.element.AnnotationValue av)
public static javax.lang.model.element.TypeElement getAnnotationTypeMirrorValue(javax.lang.model.element.Element el)
public static javax.lang.model.element.AnnotationValue getAnnotationTypeMirrorValue(javax.lang.model.element.AnnotationMirror annotationMirror, String key)
public static String getAnnotationStringValue(javax.lang.model.element.AnnotationValue av)
public static int getAnnotationIntValue(javax.lang.model.element.AnnotationValue av)
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)
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)
public boolean isSameParameterList(List<? extends javax.lang.model.element.TypeParameterElement> l1, List<? extends javax.lang.model.element.TypeParameterElement> l2)
public javax.lang.model.type.TypeMirror getImplementedClass(javax.lang.model.element.AnnotationMirror am)
public void appendParameterList(StringBuilder message, List<? extends javax.lang.model.element.TypeParameterElement> tpeList)
public javax.lang.model.element.Element getPackageElement(String packageName)
public javax.lang.model.element.Element asElement(javax.lang.model.type.TypeMirror typeMirror)
public javax.lang.model.element.TypeElement getTypeElement(String className)