public final class TypeUtils
extends java.lang.Object
Element
and AnnotationMirror
handlingModifier and Type | Method and Description |
---|---|
static javax.lang.model.element.AnnotationMirror |
getAnnotationMirrorOfType(javax.lang.model.element.Element element,
java.lang.Class<? extends java.lang.annotation.Annotation> annotation) |
static javax.lang.model.type.TypeMirror |
getAnnotationValueAsTypeMirror(javax.lang.model.element.AnnotationMirror mirror,
java.lang.String method) |
static java.util.Set<javax.lang.model.element.TypeElement> |
getAnnotationValuesAsElements(javax.lang.model.element.AnnotationMirror mirror,
java.lang.String method) |
static boolean |
hasAnnotationOfType(javax.lang.model.element.Element element,
java.lang.Class<? extends java.lang.annotation.Annotation> annotation) |
static boolean |
hasAnnotationOfType(javax.lang.model.element.Element element,
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> annotations) |
static boolean |
isAnnotationMirrorOfType(javax.lang.model.element.AnnotationMirror annotationMirror,
java.lang.Class<? extends java.lang.annotation.Annotation> clazz) |
static boolean |
isAnnotationMirrorOfType(javax.lang.model.element.AnnotationMirror annotationMirror,
java.lang.String className) |
public static boolean hasAnnotationOfType(javax.lang.model.element.Element element, java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> annotations)
public static boolean hasAnnotationOfType(javax.lang.model.element.Element element, java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
public static javax.lang.model.element.AnnotationMirror getAnnotationMirrorOfType(javax.lang.model.element.Element element, java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
public static boolean isAnnotationMirrorOfType(javax.lang.model.element.AnnotationMirror annotationMirror, java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
public static boolean isAnnotationMirrorOfType(javax.lang.model.element.AnnotationMirror annotationMirror, java.lang.String className)
public static java.util.Set<javax.lang.model.element.TypeElement> getAnnotationValuesAsElements(javax.lang.model.element.AnnotationMirror mirror, java.lang.String method)
public static javax.lang.model.type.TypeMirror getAnnotationValueAsTypeMirror(javax.lang.model.element.AnnotationMirror mirror, java.lang.String method)
Copyright © 2007–2021 Querydsl. All rights reserved.