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