public interface ElementUtil
static <T extends Annotation> TypeMirror getAnnotationClassValue(Elements elements, T anno, java.util.function.Function<T,Class<?>> func)
MirroredTypeException. Use this method to get the Class value
safely.elements - Elements for convert Class to TypeMirroranno - annotation objectfunc - the invocation of get Class valueTypeMirrorstatic <T extends Annotation> List<TypeMirror> getAnnotationClassArray(Elements elements, T anno, java.util.function.Function<T,Class<?>[]> func)
static Optional<AnnotationMirror> getAnnotationMirror(Element element, Class<? extends Annotation> annotationClass)
AnnotationMirror from given element with given typeelement - the element to find annotationannotationClass - the annotation classstatic Optional<AnnotationMirror> getAnnotationMirror(Element element, TypeMirror annotationType)
AnnotationMirror from given element with given typeelement - the element to find annotationannotationType - the annotation TypeMirrorstatic Optional<AnnotationMirror> getAnnotationMirror(Element element, String annoClzCanonicalName)
AnnotationMirror from given element with given annotation nameelement - the element to find annotationannoClzCanonicalName - the annotation namestatic List<? extends AnnotationMirror> getInheritAnnotationMirrors(TypeElement element)
static boolean isInherit(DeclaredType annoType)
static java.util.stream.Stream<TypeElement> getAllSubClasses(Types types, RoundEnvironment env, TypeMirror type)
static java.util.stream.Stream<TypeElement> getAllSubClasses(Types types, Element root, TypeMirror type)
Copyright © 2018. All rights reserved.