com.mysema.query.apt
Class TypeUtils

java.lang.Object
  extended by com.mysema.query.apt.TypeUtils

public final class TypeUtils
extends Object

Author:
tiwe

Method Summary
static AnnotationMirror getAnnotationMirrorOfType(Element element, Class<? extends Annotation> annotation)
           
static TypeMirror getAnnotationValueAsTypeMirror(AnnotationMirror mirror, String method)
           
static Set<Element> getAnnotationValuesAsElements(AnnotationMirror mirror, String method)
           
static boolean hasAnnotationOfType(Element element, Class<? extends Annotation> annotation)
           
static boolean hasAnnotationOfType(Element element, Set<Class<? extends Annotation>> annotations)
           
static boolean isAnnotationMirrorOfType(AnnotationMirror annotationMirror, Class<? extends Annotation> clazz)
           
static boolean isAnnotationMirrorOfType(AnnotationMirror annotationMirror, String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasAnnotationOfType

public static boolean hasAnnotationOfType(Element element,
                                          Set<Class<? extends Annotation>> annotations)

hasAnnotationOfType

public static boolean hasAnnotationOfType(Element element,
                                          Class<? extends Annotation> annotation)

getAnnotationMirrorOfType

public static AnnotationMirror getAnnotationMirrorOfType(Element element,
                                                         Class<? extends Annotation> annotation)

isAnnotationMirrorOfType

public static boolean isAnnotationMirrorOfType(AnnotationMirror annotationMirror,
                                               Class<? extends Annotation> clazz)

isAnnotationMirrorOfType

public static boolean isAnnotationMirrorOfType(AnnotationMirror annotationMirror,
                                               String className)

getAnnotationValuesAsElements

public static Set<Element> getAnnotationValuesAsElements(AnnotationMirror mirror,
                                                         String method)

getAnnotationValueAsTypeMirror

public static TypeMirror getAnnotationValueAsTypeMirror(AnnotationMirror mirror,
                                                        String method)


Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.