Package com.querydsl.apt
Class TypeUtils
java.lang.Object
com.querydsl.apt.TypeUtils
Various utility classes for
Element and AnnotationMirror handling- Author:
- tiwe
-
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationMirrorgetAnnotationMirrorOfType(Element element, Class<? extends Annotation> annotation) static TypeMirrorgetAnnotationValueAsTypeMirror(AnnotationMirror mirror, String method) static Set<TypeElement>getAnnotationValuesAsElements(AnnotationMirror mirror, String method) static booleanhasAnnotationOfType(Element element, Class<? extends Annotation> annotation) static booleanhasAnnotationOfType(Element element, Set<Class<? extends Annotation>> annotations) static booleanisAnnotationMirrorOfType(AnnotationMirror annotationMirror, Class<? extends Annotation> clazz) static booleanisAnnotationMirrorOfType(AnnotationMirror annotationMirror, String className)
-
Method Details
-
hasAnnotationOfType
public static boolean hasAnnotationOfType(Element element, Set<Class<? extends Annotation>> annotations) -
hasAnnotationOfType
-
getAnnotationMirrorOfType
public static AnnotationMirror getAnnotationMirrorOfType(Element element, Class<? extends Annotation> annotation) -
isAnnotationMirrorOfType
public static boolean isAnnotationMirrorOfType(AnnotationMirror annotationMirror, Class<? extends Annotation> clazz) -
isAnnotationMirrorOfType
-
getAnnotationValuesAsElements
public static Set<TypeElement> getAnnotationValuesAsElements(AnnotationMirror mirror, String method) -
getAnnotationValueAsTypeMirror
-