java.lang.Object
de.codecamp.messages.processor.LangModelUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends TypeElement>
Set<A>findComposedAnnotationTypes(Set<A> processedAnnotations, Class<? extends Annotation> metaAnnotationType, boolean includeMetaAnnotation) static Map<String,ExecutableElement> findDeclaredBeanProperties(TypeElement beanTypeElement) static <A extends Annotation>
Optional<A>findFirstMetaAnnotation(Element element, Class<A> metaAnnotationType) static <A extends Annotation>
List<A>findMetaAnnotations(Element element, Class<A> metaAnnotationType) static AnnotationMirrorgetAnnotationMirror(Element element, Class<? extends Annotation> annotationType) static Set<AnnotationMirror>getAnnotationMirrors(Element element, Class<? extends Annotation> annotationType) static AnnotationValuegetAnnotationValue(AnnotationMirror annotationMirror, String key) static <T> TgetAnnotationValueAs(AnnotationMirror annotationMirror, String key, Class<T> type, T defaultValue) static List<AnnotationMirror>getAnnotationValueAsAnnotationMirrors(AnnotationMirror annotationMirror, String key) static TypeElementgetAnnotationValueAsType(AnnotationMirror annotationMirror, String key) static List<TypeElement>getAnnotationValueAsTypes(AnnotationMirror annotationMirror, String key) static List<AnnotationValue>getAnnotationValues(AnnotationMirror annotationMirror, String key) static <T> List<T>getAnnotationValuesAs(AnnotationMirror annotationMirror, String key, Class<T> listElementType) static <T> List<T>getAnnotationValuesAs(AnnotationMirror annotationMirror, String key, Class<T> type, List<T> defaultValue) static List<VariableElement>getDeclaredFields(TypeElement element) static List<ExecutableElement>getDeclaredMethods(TypeElement element) static TypeElementgetEnclosingTypeElement(Element element) static List<VariableElement>getEnumConstants(TypeElement enumTypeElement) static List<TypeElement>getInterfaceTypes(TypeElement type) static PackageElementgetPackage(Element element) static StringgetPackageName(Element element) static Optional<TypeElement>getSuperclassType(TypeElement type) static List<TypeElement>getTypeNesting(TypeElement typeElement)
-
Method Details
-
getSuperclassType
-
getInterfaceTypes
-
getTypeNesting
-
getEnclosingTypeElement
-
getPackage
-
getPackageName
-
getDeclaredFields
-
getDeclaredMethods
-
getEnumConstants
-
findDeclaredBeanProperties
-
findFirstMetaAnnotation
public static <A extends Annotation> Optional<A> findFirstMetaAnnotation(Element element, Class<A> metaAnnotationType) -
findMetaAnnotations
public static <A extends Annotation> List<A> findMetaAnnotations(Element element, Class<A> metaAnnotationType) -
getAnnotationMirror
public static AnnotationMirror getAnnotationMirror(Element element, Class<? extends Annotation> annotationType) -
getAnnotationMirrors
public static Set<AnnotationMirror> getAnnotationMirrors(Element element, Class<? extends Annotation> annotationType) -
getAnnotationValue
-
getAnnotationValueAs
public static <T> T getAnnotationValueAs(AnnotationMirror annotationMirror, String key, Class<T> type, T defaultValue) -
getAnnotationValuesAs
public static <T> List<T> getAnnotationValuesAs(AnnotationMirror annotationMirror, String key, Class<T> type, List<T> defaultValue) -
getAnnotationValuesAs
public static <T> List<T> getAnnotationValuesAs(AnnotationMirror annotationMirror, String key, Class<T> listElementType) -
getAnnotationValues
public static List<AnnotationValue> getAnnotationValues(AnnotationMirror annotationMirror, String key) -
getAnnotationValueAsType
-
getAnnotationValueAsTypes
public static List<TypeElement> getAnnotationValueAsTypes(AnnotationMirror annotationMirror, String key) -
getAnnotationValueAsAnnotationMirrors
public static List<AnnotationMirror> getAnnotationValueAsAnnotationMirrors(AnnotationMirror annotationMirror, String key) -
findComposedAnnotationTypes
public static <A extends TypeElement> Set<A> findComposedAnnotationTypes(Set<A> processedAnnotations, Class<? extends Annotation> metaAnnotationType, boolean includeMetaAnnotation)
-